The TextEdgeMargin Property supports WPF/Silverlight.
The TextEdgeMargin Property is available in LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets the margin between the text and the AnnRectangleObject.Rect bounding rectangle. This is a dependency property.| Visual Basic (Declaration) | |
|---|---|
<TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> Public Property TextEdgeMargin As Double | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As AnnTextObject Dim value As Double instance.TextEdgeMargin = value value = instance.TextEdgeMargin | |
| C# | |
|---|---|
[TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] public double TextEdgeMargin {get; set;} | |
| C++/CLI | |
|---|---|
[TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] public: property double TextEdgeMargin { double get(); void set ( double value); } | |
Property Value
A System.Double value that specifies the margin between the text and the AnnRectangleObject.Rect bounding rectangle.For XAML example, refer to AnnGroupObject.
For C#/VB examples, refer to AnnTextObject.
Setting this value to a positive value temporarily makes the bounding rectangle smaller by the amount of this property when the text position is calculated.
Please note that using a negative value can cause unexpected behavior.
For more information, refer to Using Text in WPF Annotation Objects.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
Copy Code