Gets or sets a value indicating whether to show horizontal and/or vertical rulers.

Namespace:  C1.Win.C1Preview
Assembly:  C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute(ShowRulersFlags.All)]
public ShowRulersFlags ShowRulers { get; set; }
Visual Basic
<DefaultValueAttribute(ShowRulersFlags.All)> _
Public Property ShowRulers As ShowRulersFlags
	Get
	Set

Remarks

The default value for this property is All.

Examples

The following code displays only the horizontal ruler:

Copy CodeVisual Basic
Me.C1PrintPreviewControl1.PreviewPane.ShowRulers = C1.Win.C1Preview.ShowRulersFlags.Horizontal
Copy CodeC#
this.c1PrintPreviewControl1.PreviewPane.ShowRulers = C1.Win.C1Preview.ShowRulersFlags.Horizontal;

See Also