vcl-cxcustomcanvas-dot-tdxstrokeoptions.md
Specifies line width, in pixels.
property Width: Single read; write;
| Type | Description |
|---|---|
| Single |
The current line width (in pixels) at 96 DPI. The property value can be 0 or higher.
|
Use Color and Width properties to change line color and width, respectively.
| Value | Example[1] |
|---|---|
1 | |
5 |
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.
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.
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.
Footnotes
Width property values. The Style property is set to TdxStrokeStyle.Solid.See Also