Share via


InkPicture.DefaultMargin Field

InkPicture.DefaultMargin Field

Returns the default margin used by the MarginX and MarginY properties.

Definition

Visual Basic .NET Public DefaultMargin As Int32
C# public Int32 DefaultMargin;
Managed C++ public: Int32 DefaultMargin;

Field Value

System.Int32. A signed 32-bit integer that specifies the default margin that the MarginX and MarginY properties use.

This field is read-only. This field has no default value.

Remarks

If you want to restore the default margins, assign DefaultMargin to the MarginX and MarginY properties.

Examples

[C#]

This C# example restores the default margins to an InkPicture named theInkPicture.

theInkPicture.MarginX = theInkPicture.DefaultMargin;
theInkPicture.MarginY = theInkPicture.DefaultMargin;

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example restores the default margins to an InkPicture named theInkPicture.

theInkPicture.MarginX = theInkPicture.DefaultMargin
theInkPicture.MarginY = theInkPicture.DefaultMargin

See Also