Nevron .NET Vision
Nevron.Diagram.WinForm Namespace / NGrid Class
Members


In This Topic
    NGrid Class
    In This Topic
    The NGrid is a view component, which renders a grid in the View Background Paint Pass.
    Object Model
    NGrid Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter)>
    <System.ComponentModel.EditorAttribute(Nevron.Internal.MCEE, System.Drawing.Design.UITypeEditor)>
    <System.SerializableAttribute()>
    Public Class NGrid 
       Inherits NViewComponent
       Implements Nevron.Diagram.INInvalidatable, Nevron.Diagram.INMeasurements, Nevron.Diagram.INMeasurementUnit, Nevron.Diagram.INPaintable, Nevron.Diagram.INVisible, Nevron.Diagram.INXCoordinateSnapper, Nevron.Diagram.INYCoordinateSnapper, Nevron.Dom.INNode, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    'Usage
     
    
    Dim instance As NGrid
    [System.ComponentModel.TypeConverter(System.ComponentModel.ExpandableObjectConverter)]
    [System.ComponentModel.Editor(Nevron.Internal.MCEE, System.Drawing.Design.UITypeEditor)]
    [System.Serializable()]
    public class NGrid : NViewComponent, Nevron.Diagram.INInvalidatable, Nevron.Diagram.INMeasurements, Nevron.Diagram.INMeasurementUnit, Nevron.Diagram.INPaintable, Nevron.Diagram.INVisible, Nevron.Diagram.INXCoordinateSnapper, Nevron.Diagram.INYCoordinateSnapper, Nevron.Dom.INNode, Nevron.INReferenceHolder, Nevron.INReferenceProvider  
    Remarks
    NGrid enhances its base NViewComponent with the following features:
    • The grid can be painted so it implements the INPaintable interface
    • NGrid implements the INXCoordinateSnapper and INYCoordinateSnapper to indicate its ability to snap X and Y coordinates. You can also specify whether the grid should snap cooridnates to major and/or minor lines.
    • The origin of the grid is controlled by the Origin property (specified in grid measurement units). The cell size is controlled by the CellSizeMode property. When the CellSizeMode is set to Fixed you can use the FixedCellSize property to specify the desired cell size, which will not change when the view transformation changes.
    • The grid can be displayed in sereral styles. The grid style is controlled by the GridStyle property
    Inheritance Hierarchy

    System.Object
       Nevron.Diagram.WinForm.NViewComponent
          Nevron.Diagram.WinForm.NGrid

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also