Compartir a través de


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 int DefaultMargin
public final var DefaultMargin : int
Not applicable.

Field Value

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.

Example

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkOverlay Class
InkOverlay Members
Microsoft.Ink Namespace
InkOverlay.MarginX
InkOverlay.MarginY
InkOverlay.ClipInkToMargin