Hi Alan,
By default, the grid lines are created based on the pixel values and also the default value of the GridHorizantal offset & Grid Vertical offset of the Diagram Page are such as 25,25 pixels (The grid lines are starting from 25 pixels). So that we can’t view the Grid Lines. However, If you want to view the Grid Lines, please change the GridHorizantalOffset and GridVerticalOffset Values based on the Measurement unit which you are using (if you change the Measurement unit). For more information please refer the following code snippet to set the GridHorizantalOffset and GridVerticalOffset. Now, the Grid Lines will be create based on the Measurement unit which you are using.
Code Snippet :
(diagramView.Page as DiagramPage).GridHorizontalOffset = MeasureUnitsConverter.FromPixels((diagramView.Page as DiagramPage).GridHorizontalOffset, (diagramView.Page as DiagramPage).MeasurementUnits);
//Set the GridVerticalOffset
(diagramView.Page as DiagramPage).GridVerticalOffset = MeasureUnitsConverter.FromPixels((diagramView.Page as DiagramPage).GridVerticalOffset, (diagramView.Page as DiagramPage).MeasurementUnits);
|
Please let us know if you require further assistance on this.
Regards,
Sudhakar C