|
DXFReader Control - ShowGrid Property
Kadmos DXFReader ActiveX Control

DXFReader Control
ShowGrid Property
|
Description
|
Returns/sets whether the control will display the grid.
|
Syntax Visual Basic
|
[form.]DXFReader.ShowGrid[ = {True|False}]
|
|
Visual C++
|
BOOL DXFReader.GetShowGrid(); void DXFReader.SetShowGrid(BOOL bNewValue);
|
|
Delphi
|
property ShowGrid: WordBool;
|
|
C#
|
bool DXFReader.ShowGrid;
|
|
Remarks
|
Setting ShowGrid = True will show the drawing grid as specified in the DXF file. If the grid is too dense to display then the Error event is fired with ErrorCode = 113. The figure below shows the control displaying the grid.

The grid color is setted by the GridColor property.
Note that the grid is showed only if the it is specified in the DXF file. In a DXF file informations about grid are stored in the "*ACTIVE" viewport. To set grid information in a drawing you can use the following code:
With DXFReader1
.ViewPorts("*ACTIVE").GridOnOff = 1
'Set grid spacing .ViewPorts("*ACTIVE").GridSpacingX = 0.5 .ViewPorts("*ACTIVE").GridSpacingY = 0.5
.ShowGrid = True .Refresh
End With
|
|
Data Type
|
Boolean
|
|
Default Value
|
False
|
Copyright © 2008/2011 Kadmos.com - All rights reserved. Privacy Policy
|