GoDigram for .NET Framework and .NET Core
Northwoods.Go.Draw Namespace / GoRuler Class / DocScale Property
In This Topic
    DocScale Property (GoRuler)
    In This Topic
    Gets or sets the document scale ratio for the ruler (Zoom).
    Syntax
    [Description("The ratio of displayed document units to normally scaled document units.")]
    [Category("Ruler Display")]
    [DefaultValue(1)]
    public virtual float DocScale {get; set;}

    Property Value

    The default value is 1.0f; the value must be greater than zero.
    Remarks

    The DocScale property is useful for zooming. For example, when the DocScale is set to a value of 0.5, the ruler will display measurements at %50 of their normal size. When the DocScale is set to a value of 2.0, the ruler will display measurements at %200 of their normal size.

    This value is normally kept in sync with a GoView's DocScale property.

    See Also