The IEViewRulerParams type exposes the following properties.

Properties

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
AlignToImage
If false, the ruler will be the full width of the control (and show negative values for areas outside the image). If true, the ruler begins at the position of the image within the control. Default: False
Frequency

Specifies the number of logical units where ticks are shown. Use LabelFrequency to configure labels and longer tick marks.

Note: This value is set automatically when changing Units.

Default: 10

HorzInverted
When true, the horizontal ruler is painted from right to left. Default: False
HorzPos
Specifies Whether the horizontal ruler is shown above (Up) or below (Down) the image. Default: Up
LabelFrequency

Specifies the number of logical units where to show the labels (and longer tick marks).

Use Frequency to configure short tick marks.

Notes:

- This value is set automatically when changing Units.

- Labels may be hidden if the view is crowded and MinLabelSpacing has been set

Default: 40

LabelPrecision
Specifies the number of decimal places shown for values in the ruler. Default: 2
MinLabelSpacing

Specifies the minimum spacing between (the center of) labels. To reduce crowding, labels positioned closer than this are not shown.

If MinLabelSpacing is 0 then labels are always drawn.

Default: 30

ScrollRate
Specifies the scroll rate used when moving a grip out of ruler borders. Default: 1.0
ShowBorder
Specify whether a border is displayed between the ruler and the image. Default: True
Units

Specifies the measurement unit displayed on the ruler.

Default: ieruPixels

Note: Changing Units will automatically set LabelFrequency and Frequency to a relevant value

VertInverted
When true, the vertical ruler is painted from bottom to top. Default: False.
VertPos
Specifies whether the vertical ruler is shown left (gdLeft) or right (gdRight) of the image. Default: Left
VertWidth
Specifies the width of the vertical ruler. Default: 40

See Also