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 model'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() Creates a new object that is a copy of the current instance.
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) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetBounds(Viewport) Gets the bounds rectangle in screen coordinates.
Internal protected (Protected Friend) method GetDefaultLayerName(Environment) Use this method to get the correct layer name for internal Meshes. (inherited from UserInterfaceBase).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetThumbnail(Viewport, Size, Color) Gets a thumbnail bitmap of the user interface element.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method ObservableCollectionPropertyChanged(object, NotifyCollectionChangedEventArgs) For internal use only. (inherited from DisposableBase).
Protected method RaisePropertyChangedEvent(object, DependencyProperty) For internal use only. (inherited from DisposableBase).
Public method ScaleForDPI() Scales the element for high DPI settings. (inherited from UserInterfaceBase).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method Update(IUserInterfaceElement)
Top
Events
 
Name Description
Public event PropertyChanged For internal use only. (inherited from DisposableBase).
Top
Fields
 
Name Description
Public field Static PropertyChangedEvent For internal use only. (inherited from DisposableBase).
Top

.NET Framework

Supported in: 4.8

In this article

Definition