LinkShape.GridSize Property

Gets or sets the size of the grid to which the link’s vertices snap. If 0.0, no grid is used.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'Declaration
Public Overrides Property GridSize As Double
'Usage
Dim instance As LinkShape 
Dim value As Double 

value = instance.GridSize

instance.GridSize = value
public override double GridSize { get; set; }
public:
virtual property double GridSize {
    double get () override;
    void set (double value) override;
}
public override function get GridSize () : double 
public override function set GridSize (value : double)

Property Value

Type: System.Double

Remarks

After the user moves a line segment, the position is adjusted so that X or Y coordinates are a multiple of the GridSize. To switch off this feature, set GridSize to 0.0 or override this property to return 0.0. The default value is the GridSize of the parent shape or diagram. It is therefore usually only necessary to set or override the GridSize of the diagram.

.NET Framework Security

See Also

Reference

LinkShape Class

LinkShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace