Share via


InkCollector.DefaultMargin Field

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly DefaultMargin As Integer
'Usage
Dim instance As InkCollector 
Dim value As Integer 

value = instance.DefaultMargin
public readonly int DefaultMargin
public:
initonly int DefaultMargin
public final var DefaultMargin : int

Field Value

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

Remarks

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

Examples

This C# example restores the default margins to an InkCollector named theInkCollector.

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

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

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

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkCollector Class

InkCollector Members

Microsoft.Ink Namespace

InkCollector.MarginX

InkCollector.MarginY

InkCollector.ClipInkToMargin