Partager via


ShapeElement.CreateClassStyleSet Method

Creates a class style set for the shape type.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Protected Overridable Function CreateClassStyleSet As StyleSet
protected virtual StyleSet CreateClassStyleSet()
protected:
virtual StyleSet^ CreateClassStyleSet()
abstract CreateClassStyleSet : unit -> StyleSet  
override CreateClassStyleSet : unit -> StyleSet
protected function CreateClassStyleSet() : StyleSet

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSet
The class style set for the shape type.

Examples

protected override DslDiagrams::StyleSet ClassStyleSet
{
get
{
if (classStyleSet == null)
{
classStyleSet = CreateClassStyleSet();
}
return classStyleSet;
}
}

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace