Freigeben über


InkCollector.DefaultMargin Field

InkCollector.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 InkCollector named theInkCollector.

theInkCollector.MarginX = theInkCollector.DefaultMargin;
theInkCollector.MarginY = theInkCollector.DefaultMargin;

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example restores the default margins to an InkCollector named theInkCollector.

theInkCollector.MarginX = theInkCollector.DefaultMargin
theInkCollector.MarginY = theInkCollector.DefaultMargin

See Also