ShapeElement.StyleSet Property

Gets an instance of the style set for the shape.

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

Syntax

'Declaration
Public Overridable ReadOnly Property StyleSet As StyleSet
public virtual StyleSet StyleSet { get; }
public:
virtual property StyleSet^ StyleSet {
    StyleSet^ get ();
}
abstract StyleSet : StyleSet with get 
override StyleSet : StyleSet with get
function get StyleSet () : StyleSet

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSet
An instance of the style set for the shape; otherwise, if there is no style set for the shape, the style set for the class.

Remarks

The values set in the instance style set override those defined for the class and for the parent shape or diagram.

Warning

The simplest method of setting attributes such as color is to set one of the Exposes... properties in the DSL Definition. This generates a corresponding property on the shape, which you can update and for which you can write change handlers, in the same manner as for other domain properties.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

StyleSet