TdxStrokeOptions.Width Property
Specifies line width, in pixels.
Declaration
property Width: Single read; write;
Property Value
| Type | Description |
|---|---|
| Single | The current line width (in pixels) at |
Remarks
Use Color and Width properties to change line color and width, respectively.
Property Value Examples
| Value | Example[1] |
|---|---|
1 |
![]() |
5 |
![]() |
Property Setter Behavior
The Width property setter changes the property value to 0 if you assign a value below 0 to the Width property. The property setter raises the OnChange event if a change of the Width property value is not enclosed between BeginUpdate and EndUpdate procedure calls.
Property Values and Scaling
The Width property specifies the base line width that corresponds to 96 DPI. A visual element that uses a TdxStrokeOptions class instance applies the current scale factor to the Width property value to calculate the actual line width on the target screen.
Default Value
The Width property’s default value is 0 at the TdxStrokeOptions class level. Different parent settings classes can define different default values for the Width property.
-
This example demonstrates two different
Widthproperty values. The Style property is set to TdxStrokeStyle.Solid.

