Gets an instance of the style set for the shape.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
The values set in the instance style set override those defined for the class and for the parent shape or diagram.
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.
- 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.