Grid Class

Planar grid definition.
Public Class Grid 
Inherits UserInterfaceBase 
Implements ICloneable
This language is not supported or no code example is available.
public class Grid : UserInterfaceBase
ICloneable
This language is not supported or no code example is available.
Name Description
Public property ActualMax Gets the actual grid maximum 2D point relative to the grid plane.
Public property ActualMin Gets the actual grid minimum 2D point relative to the grid plane.
Public property AlwaysBehind When true, the grids is drawn always behind the geometry.
Public property AutoSize When true, the grid is resized automatically every time the design's bounding box changes.
Public property AutoStep When true, the grid real step is a multiple of the Step to keep the number of lines between MinNumberOfLines and MaxNumberOfLines.
Public property BorderColor Gets or sets the color used to draw the grid plane border.
Public property ColorAxisX Gets or sets the color used to draw axis X.
Public property ColorAxisY Gets or sets the color used to draw axis Y.
Protected property CustomViewport Tells if the UI element is drawn with a custom viewport. (inherited from UserInterfaceBase).
Public property Disposed (inherited from DisposableBase).
Public property FillColor Gets or sets the color used to draw the grid plane.
Public property Lighting When false, the UI element is drawn with a flat color.
Public property LineColor Gets or sets the color used to draw lines.
Protected property LocationAtOrigin When doing a render to Bitmap of the item, must not change the viewport origin. (inherited from UserInterfaceBase).
Public property MajorLineColor Gets or sets the color used to draw major lines.
Public property MajorLinesEvery Gets or sets the number of steps between two major lines.
Public property Max Gets or sets the grid maximum 2D point relative to the grid plane.
Public property MaxNumberOfLines When AutoStep is true, defines the maximum number of lines.
Public property Min Gets or sets the grid minimum 2D point relative to the grid plane.
Public property MinNumberOfLines When AutoStep is true, defines the Minimum number of lines.
Internal protected (Protected Friend) property ParentViewport (inherited from UserInterfaceBase).
Public property Plane Grid plane.
Public property Step Gets or sets the step between grid lines (meaningful only when AutoStep is false).
Public property Visible Gets or sets the visibility status.
Top
Methods
 
Name Description
Public method Clone()
Protected method ComputeAutomaticSize(Point3D, Point3D, double) Computes the automatic grid size.
Public method Dispose()
Internal protected (Protected Friend) method Draw(RenderContextBase, Viewport) Draws the grid lines.
Protected method DrawForBitmap(object)
Public method Equals(Object) (inherited from Object).
Protected method Finalize (inherited from Object).
Public method GetBounds(Viewport) Gets the bounds rectangle in screen coordinates.
Internal protected (Protected Friend) method GetDefaultLayerName(Workspace) Use this method to get the correct layer name for internal Meshes. (inherited from UserInterfaceBase).
Public method GetHashCode (inherited from Object).
Public method GetThumbnail(Viewport, Size, Color) Gets a thumbnail bitmap of the user interface element.
Public method GetType (inherited from Object).
Protected method MemberwiseClone (inherited from Object).
Public method ScaleForDPI() Scales the element for high DPI settings. (inherited from UserInterfaceBase).
Public method ToString (inherited from Object).
Public method Update(IUserInterfaceElement)
Top

.NET Framework

Supported in: 4.7.2

In this article

Definition