DiagramItem.Appearance Property
Provides access to the item’s appearance settings.
Namespace: DevExpress.XtraDiagram
Assembly: DevExpress.XtraDiagram.v26.1.dll
NuGet Package: DevExpress.Win.Diagram
Declaration
Property Value
| Type | Description |
|---|---|
| DiagramAppearanceObject | The object that provides the item’s appearance settings. |
Remarks
The Appearance property allows you to customize the following item settings:
- Background color: BackColor, ContentBackground
- Text color and font: ForeColor, Font, FontSizeDelta, FontStyleDelta
- Text alignment, wrapping, and trimming: TextOptions
- Border color and thickness: BorderColor, BorderSize
- Border dash pattern: BorderDashPattern
Use the Options property to specify which appearance settings are applied to the item.
The following code snippet sets a dashed border for a diagram shape:
item.Appearance.BorderDashPattern = new DevExpress.Diagram.Core.DiagramDoubleCollection(new double[] { 10, 3 });
item.Appearance.BorderColor = Color.Red;
item.Appearance.BorderSize = 4;
See Also