Search
DiagramStyle Members
Constructors Properties Methods Events
 


Represents a reusable set of properties that define the appearance of diagrams.

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

 Public Constructors

  Name Description

DiagramStyle

Initializes a new instance of the DiagramStyle class.

 Public Properties

  Name Description

BackBrush

Gets or sets the brush used for painting the diagram background.

Brush

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

FontFamily

Gets or sets the font family of the item texts.

FontSize

Gets or sets the font size of the item texts.

FontStyle

Gets or sets the font style of the item texts.

FontUnit

Gets or sets the font unit of the item texts.

NodeEffects

Gets a list with all effects applied to the nodes of this diagram.

ShadowBrush

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

Stroke

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

StrokeDashStyle

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

StrokeThickness

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

TextBrush

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

 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.)

LoadFrom

Deserializes the item from the specified reader. (Inherited from Style.)

LoadFromJson

Loads the style content from a JSON object.

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.)

SaveTo

Serializes the style to the specified writer. (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