DisplayAreaWidth property

Returns the width of the region in which Element objects can be placed on a display. This is the same as the width that is specified in the Display Settings dialog box. Read-only. Long.
This value does not change when the display window is resized.
Syntax
Display
.
DisplayAreaWidth
where
Display
– is the name of a Display object or an expression that evaluates to a Display object.
Remarks
  • When the display is configured to Pan, this value is always in pixels. If the display window width is decreased, scroll bars appear and some of the display area is hidden.
  • When the display is configured to Scale, this value is only in pixels if the display has not been resized, (that is, HorizontalScaleFactor = 1). If the display is resized the value no longer corresponds to pixels on the display. In this case you must multiply the Width property by the HorizontalScaleFactor to get the pixel width of the display region.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal