Back to Devexpress

DiagramOptionsView.Theme Property

windowsforms-devexpress-dot-xtradiagram-dot-options-dot-diagramoptionsview.md

latest1.9 KB
Original Source

DiagramOptionsView.Theme Property

Specifies the current theme.

Namespace : DevExpress.XtraDiagram.Options

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(typeof(DiagramTheme), "Office")]
[DiagramCategory(DiagramCategory.Appearance)]
public virtual DiagramTheme Theme { get; set; }
vb
<DefaultValue(GetType(DiagramTheme), "Office")>
<DiagramCategory(DiagramCategory.Appearance)>
Public Overridable Property Theme As DiagramTheme

Property Value

TypeDefaultDescription
DiagramTheme"Office"

A DiagramTheme object.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Theme
DiagramControl

.OptionsView .Theme

|

Remarks

See the example below.

csharp
diagramControl1.OptionsView.Theme = ThemeRegistrator.GetTheme("Linear");
vb
diagramControl1.OptionsView.Theme = ThemeRegistrator.GetTheme("Linear")

See Also

DiagramOptionsView Class

DiagramOptionsView Members

DevExpress.XtraDiagram.Options Namespace