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 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 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 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
InkCollector Class
InkCollector Members
Microsoft.Ink Namespace
InkCollector.MarginX
InkCollector.MarginY
InkCollector.ClipInkToMargin