Skip to main content

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 96 DPI. The property value can be 0 or higher.

Remarks

Use Color and Width properties to change line color and width, respectively.

Examples

Value Example[1]
1 The Current Line Width is 1
5 The Current Line Width is 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.

Footnotes
  1. This example demonstrates two different Width property values. The Style property is set to TdxStrokeStyle.Solid.

See Also