ShapeElement.CreateClassStyleSet Method
Creates a class style set for the shape type.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.