combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / PropertyLayoutBase Class / RulerGuides Property
Example


In This Topic
    RulerGuides Property
    In This Topic
    Gets or sets the ruler guides in the Designer.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property RulerGuides As PropertyRulerGuides
    public PropertyRulerGuides RulerGuides {get;}
    public:
    property PropertyRulerGuides^ RulerGuides {
       PropertyRulerGuides^ get();
    }
    Example
    // add a horizontal ruler guide
    RulerGuide newRulerGuide = new RulerGuide(proj.Layout.RulerGuides.Horizontal); 
    newRulerGuide.Position = 10000; 
     
     
    // iterate all horizontal ruler guides
    foreach (RulerGuide rulerGuide in proj.Layout.RulerGuides.Horizontal) 
    { 
        int rulerPos = rulerGuide.Position; 
    }
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also