Search
DiagramItemStyle Members
Constructors Properties Methods Events
 


Represents a reusable set of properties that define the appearance of diagram items.

The following tables list the members exposed by the DiagramItemStyle type.

 Protected Constructors

  Name Description

DiagramItemStyle

Initializes a new instance of the DiagramItemStyle class.

 Public Properties

  Name Description

Brush

Gets or sets the brush used to fill the interior of the item.

FontFamily

Gets or sets the font family of the item text.

FontSize

Gets or sets the font size of the item text.

FontStyle

Gets or sets the font style of the item text.

FontUnit

Gets or sets the font unit of the item text.

ShadowBrush

Gets or sets the brush used to paint the shadow of the item.

Stroke

Gets or sets the brush used to paint the outline of the item.

StrokeDashStyle

Gets or sets the pattern of dashes and gaps used to outline items.

StrokeThickness

Gets or sets the thickness of the item's outline, expressed in the current units of measure.

TextBrush

Gets or sets the brush used to paint texts inside the item.

 Public Methods

  Name Description

GetProperties

Gets all properties in the style. (Inherited from Style.)

GetProperty

Returns the property with the specified name, if any. (Inherited from Style.)

RegisterType

Associates a type with an alias. (Inherited from Style.)

 Protected Methods

  Name Description

GetValue

Gets the value of the specified property. (Inherited from Style.)

IsPropertySet

Checks whether the specified property has a value. (Inherited from Style.)

LoadFromJson

Loads the style content from a JsonObject.

LoadFromXml

Loads the style content from an XML element. (Inherited from Style.)

OnPropertyChanged

Raises the PropertyChanged event. (Inherited from Style.)

RegisterProperty

Registers a new property with the specified name and type. (Inherited from Style.)

SaveToJson

Saves the style content into a JsonObject.

SaveToXml

Saves the style content into an XML element. (Inherited from Style.)

SetValue

Sets the value of the specified property. (Inherited from Style.)

UnsetValue

Clears the value of the specified property. (Inherited from Style.)

 Public Events

  Name Description

PropertyChanged

Raised when any of the registered style properties has changed. (Inherited from Style.)

 See Also