Diagram.GridSize Property

Gets or sets the size of the grid for the diagram.

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

Syntax

'宣言
Public Overrides Property GridSize As Double
'使用
Dim instance As Diagram
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

The size of the grid for the diagram.

Remarks

The grid size for each child shape uses the grid size of its parent shape. You can override this behavior to use a custom grid size for a child shape.

Permissions

See Also

Reference

Diagram Class

Diagram Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace