Share via


InkOverlay.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 InkOverlay 
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 InkOverlay named theInkOverlay.

theInkOverlay.MarginX = theInkOverlay.DefaultMargin;
theInkOverlay.MarginY = theInkOverlay.DefaultMargin;

This Microsoft Visual Basic .NET example restores the default margins to an InkOverlay named theInkOverlay.

theInkOverlay.MarginX = theInkOverlay.DefaultMargin
theInkOverlay.MarginY = theInkOverlay.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

InkOverlay Class

InkOverlay Members

Microsoft.Ink Namespace

InkOverlay.MarginX

InkOverlay.MarginY

InkOverlay.ClipInkToMargin