combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / CollectionRulerGuides Class
Members Example


In This Topic
    CollectionRulerGuides Class
    In This Topic

     This collection contains the ruler guides of the current project. It can also be used to add new ruler guides to the project.

    Object Model
    CollectionRulerGuides ClassRulerGuide Class
    Syntax
    'Declaration
     
    
    Public Class CollectionRulerGuides 
       Inherits combit.Reporting.Dom.DomCollectionBase(Of RulerGuide)
    public class CollectionRulerGuides : combit.Reporting.Dom.DomCollectionBase<RulerGuide> 
    public ref class CollectionRulerGuides : public combit.Reporting.Dom.DomCollectionBase<RulerGuide> 
    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; 
    }
    Inheritance Hierarchy

    System.Object
       System.Collections.ObjectModel.Collection<T>
          System.Collections.ObjectModel.ObservableCollection<T>
             combit.Reporting.Dom.DomCollectionBase<T>
                combit.Reporting.Dom.CollectionRulerGuides

    Requirements

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

    See Also