Class GridMeasured
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
Represents a measured, printable grid used by rendering views (layouts or viewports) to draw scale-aware grid lines and optional coordinate labels.
public sealed class GridMeasured : vdBaseObject, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
GridMeasured
- Implements
- Inherited Members
Remarks
A GridMeasured instance encapsulates configuration for grid rendering such as spacing logic, colors,
minor/major lines, line weights, text style and placement, text formatting and device-size based measurements.
It is typically owned by a rendering view (for example a vdLayout or
vdViewport through the GridMeasure property)
Constructors
- GridMeasured()
Initializes the GridMeasured object.
Properties
- AlphaBlending
Get/Set the AlphaBlending value for the selected GridColor.
- DisplayText
Get/Set a value that represents if the X and Y text values will be dispalyed.
- DrawBefore
Get/Set a value that represents if the grid will be drawn before or after basic entities rendering.
- GridColor
Get/Set the color used to draw the grid.
- GridColorMinor
Get/Set the color used to draw the minor grid lines.
- LineWeight
Get/Set The LineWeight for the grid lines.
- LineWeightMinor
Get/Set The LineWeight for the minor grid lines.
- LockGridLineDistance
Lock the grid line distance with the specified value in Drawing Units.
- MinGridLineDistance
Get/Set the minimun distance between horizontal or vertical grid lines in device milimeters.
- NumericFormat
Get/Set a string that used to convert the double values into formated strings.
- Placement
Get/Set a value that represents the sides where the x and y coordinates will be drawn.
- TextColor
Get/Set the vdColor object that the texts will be drawn with.
- TextGap
Get/Set the gap in device milimeters between text and grid lines.
- TextSize
Get/Set the height in device milimeters that all texts of the grid will be use.
- TextStyle
Get/Set the selected textstyle.
- ViewOnlyInUCS
Get/Set a value that represents if the grid will be displayed on View planes other than Current User Co-ordinate system.
- Visible
Get/Set a value that represents if the grid is visible.
Methods
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the grPatternLine object when opening in vdml format.
- Dispose()
Disposes the object.
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- Serialize(Serializer)
This Function is called when saving the grPatternLine object to vdml format.
- SetMeasuredSpaceParameters(double[], double)
Controls the spaces between grid lines depend on each zoom and TextSize property.