Gets a value indicating whether this AnnObject object supports a stroke.
public virtual bool SupportsStroke {get;}Public Overridable ReadOnly Property SupportsStroke As Booleanpublic:virtual property bool SupportsStroke {bool get();}
true if this AnnObject object supports a stroke; false otherwise.
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnObjectBase_SupportsStroke(ByVal container As AnnContainer)For Each obj As AnnObject In container.ChildrenIf obj.SupportsStroke Thenobj.Stroke = Colors.Blueobj.StrokeThickness = 1.0End IfIf obj.SupportsFill Thenobj.Fill = Colors.WhiteEnd IfIf TypeOf obj Is IAnnFont ThenDim font As IAnnFont = DirectCast(obj, IAnnFont)font.FontFamilyName = "Arial"font.FontSize = 10.0DirectCast(obj, IAnnText).Foreground = Colors.RedEnd IfNext objEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnObjectBase_SupportsStroke(AnnContainer container){foreach (AnnObject obj in container.Children){if (obj.SupportsStroke){obj.Stroke = Colors.Blue;obj.StrokeThickness = 1.0;}if (obj.SupportsFill)obj.Fill = Colors.White;if (obj is IAnnFont){IAnnFont font = (obj as IAnnFont);font.FontFamilyName = "Arial";font.FontSize = 10.0;(obj as IAnnText).Foreground = Colors.Red;}}}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;private void AnnObjectBase_SupportsStroke(AnnContainer container){foreach (AnnObject obj in container.Children){if (obj.SupportsStroke){obj.Stroke = Colors.Blue;obj.StrokeThickness = 1.0;}if (obj.SupportsFill)obj.Fill = Colors.White;if (obj is IAnnFont){IAnnFont font = (obj as IAnnFont);font.FontFamilyName = "Arial";font.FontSize = 10.0;(obj as IAnnText).Foreground = Colors.Red;}}}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.DemosPrivate Sub AnnObjectBase_SupportsStroke(ByVal container As AnnContainer)For Each obj As AnnObject In container.ChildrenIf obj.SupportsStroke Thenobj.Stroke = Colors.Blueobj.StrokeThickness = 1.0End IfIf obj.SupportsFill Thenobj.Fill = Colors.WhiteEnd IfIf TypeOf obj Is IAnnFont ThenDim font As IAnnFont = (TryCast(obj, IAnnFont))font.FontFamilyName = "Arial"font.FontSize = 10.0TryCast(obj, IAnnText).Foreground = Colors.RedEnd IfNext objEnd Sub
|
Products |
Support |
Feedback: SupportsStroke Property - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.