InkPicture.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 InkPicture
Dim value As Integer
value = instance.DefaultMargin
public readonly int DefaultMargin
public:
initonly int DefaultMargin
public final var DefaultMargin : int
Remarks
Contains a signed 32-bit integer that specifies the default margin that the MarginX and MarginY properties use.
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 InkPicture named theInkPicture.
[C#]
theInkPicture.MarginX = theInkPicture.DefaultMargin;
theInkPicture.MarginY = theInkPicture.DefaultMargin//...
This Microsoft® Visual Basic® .NET example restores the default margins to an InkPicture named theInkPicture.
[Visual Basic]
theInkPicture.MarginX = theInkPicture.DefaultMargin
theInkPicture.MarginY = theInkPicture.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