Gets or sets the System.Windows.Media.Color associated with this AnnObject to draw this object's outline. This is a dependency property.
public Color Stroke {get; set;}
Public Property Stroke As Color
A Color that specifies how the AnnObject outline is painted. The default is System.Windows.Media.Colors.Red.
The Stroke and StrokeBrush properties work in the following manner:
If StrokeBrush is set to null, then the value of Stroke is used to draw this object's outline.
If StrokeBrush is set to a valid object, then this value is used to draw the object's outline and the value of Stroke is ignored.
Stroke only supports a solid color while AnnBrush and its derived classes such as AnnLinearGradientBrush supports filling the drawing the outline the object with a linear brush.
To use an AnnObject with a transparent outline, set StrokeBrush to null and Stroke to System.Windows.Media.Colors.Transparent.
If this AnnObject does not support strokes (SupportsStroke value is false), this property will always return the default value and setting this property to any value will be ignored.
For XAML example, refer to AnnPolygonObject.
For C#/VB examples, refer to AnnAutomationManager.
Products |
Support |
Feedback: Stroke Property (AnnObject) - 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.