Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SupportsStroke Property
See Also  Example
Leadtools.Windows.Annotations Namespace > AnnObjectBase Class : SupportsStroke Property





Gets a value indicating whether this AnnObjectBase object supports a stroke.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property SupportsStroke As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim value As Boolean
 
value = instance.SupportsStroke
C# 
public virtual bool SupportsStroke {get;}
C++/CLI 
public:
virtual property bool SupportsStroke {
   bool get();
}
XAML Syntax 
You cannot use this property in XAML.
XAML Syntax 
You cannot use this property in XAML.

Return Value

true if this AnnObjectBase object supports a stroke; false otherwise.

Example

Visual BasicCopy Code
Private Sub AnnObjectBase_SupportsStroke(ByVal container As AnnContainer)
   For Each obj As AnnObjectBase In container.Children
      If obj.SupportsStroke Then
         obj.Stroke = Brushes.Blue
         obj.StrokeThickness = 1.0
      End If
      If obj.SupportsFill Then
         obj.Fill = Brushes.White
      End If

      If obj.SupportsFont Then
         obj.FontFamily = New FontFamily("Arial")
         obj.FontSize = 10.0
         CType(IIf(TypeOf obj Is IAnnTextObject, obj, Nothing), IAnnTextObject).TextBrush = Brushes.Red
      End If
   Next obj
End Sub
C#Copy Code
private void AnnObjectBase_SupportsStroke(AnnContainer container) 

   foreach(AnnObjectBase obj in container.Children) 
   { 
      if(obj.SupportsStroke) 
      { 
         obj.Stroke = Brushes.Blue; 
         obj.StrokeThickness = 1.0; 
      } 
      if(obj.SupportsFill) 
         obj.Fill = Brushes.White; 
 
      if(obj.SupportsFont) 
      { 
         obj.FontFamily = new FontFamily("Arial"); 
         obj.FontSize = 10.0; 
         (obj as IAnnTextObject).TextBrush = Brushes.Red; 
      } 
   } 
}

Remarks

(Read only)

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

SupportsStroke requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.