Class Path
Vector path element for drawing shapes in page content; configure fill and stroke to render outlines and areas in the document’s coordinate space.
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Graphics
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class Path : PositionContentElement, IFixedDocumentElement, IAlphaConstantProvider, IStrokeAlphaConstantProvider
Constructors
Path()
Properties
AlphaConstant
Gets or sets the alpha constant. Specifying the constant shape or constant opacity value to be used for nonstroking operations.
Declaration
public double? AlphaConstant { get; set; }
Property Value
|
System.Nullable<System.Double>
The alpha constant value between 0.0 (transparent) and 1.0 (opaque), or null to use default opacity. |
Fill
Gets or sets the color used to fill the interior of the path.
Declaration
public ColorBase Fill { get; set; }
Property Value
|
ColorBase
The fill color, or null if the path should not be filled. |
Geometry
Gets or sets the geometric shape that defines the path's outline and area.
Declaration
public GeometryBase Geometry { get; set; }
Property Value
|
GeometryBase
The geometry object that describes the path's shape. |
IsFilled
Gets or sets a value indicating whether the path's interior should be filled with color.
Declaration
public bool IsFilled { get; set; }
Property Value
|
System.Boolean
True if the path should be filled; otherwise, false. |
IsStroked
Gets or sets a value indicating whether the path's outline should be drawn.
Declaration
public bool IsStroked { get; set; }
Property Value
|
System.Boolean
True if the path outline should be stroked; otherwise, false. |
MiterLimit
Gets or sets the miter limit.
Declaration
public double? MiterLimit { get; set; }
Property Value
|
System.Nullable<System.Double>
The miter limit ratio, or null to use the default system value. |
Stroke
Gets or sets the color used to draw the outline of the path.
Declaration
public ColorBase Stroke { get; set; }
Property Value
|
ColorBase
The stroke color, or null if the path outline should not be drawn. |
StrokeAlphaConstant
Gets or sets the stroke alpha constant. Specifying the constant shape or constant opacity value to be used for stroking operations.
Declaration
public double? StrokeAlphaConstant { get; set; }
Property Value
|
System.Nullable<System.Double>
The stroke alpha constant value between 0.0 (transparent) and 1.0 (opaque), or null to use default opacity. |
StrokeDashArray
Gets or sets the dash pattern applied to the stroke outline of the path.
Declaration
public IEnumerable<double> StrokeDashArray { get; set; }
Property Value
|
System.Collections.Generic.IEnumerable<System.Double>
An enumerable collection of doubles representing the dash pattern lengths, or null for a solid line. |
StrokeDashOffset
Gets or sets the stroke dash offset.
Declaration
public double StrokeDashOffset { get; set; }
Property Value
|
System.Double
The offset distance in user units from the beginning of the dash pattern. |
StrokeLineCap
Gets or sets the style of line caps used at the endpoints of the path's stroke.
Declaration
public LineCap StrokeLineCap { get; set; }
Property Value
|
LineCap
The line cap style that determines how stroke endpoints are rendered. |
StrokeLineJoin
Gets or sets the stroke line join.
Declaration
public LineJoin StrokeLineJoin { get; set; }
Property Value
|
LineJoin
The line join style that determines how stroke line segments are joined together. |
StrokeThickness
Gets or sets the width of the path's outline stroke in user units.
Declaration
public double StrokeThickness { get; set; }
Property Value
|
System.Double
The thickness of the stroke line used to draw the path outline. |
Methods
Clone()
Creates a deep copy of this path element with all its properties and geometry.
Declaration
public Path Clone()
Returns
|
Path
A new Path instance that is a complete copy of this path. |
CreateClonedInstance<T>()
Creates a new instance of the path for cloning purposes.
Declaration
protected override T CreateClonedInstance<T>()
where T : PositionContentElement
Returns
|
T
A new instance of the specified type containing the cloned path data. |
Type Parameters
|
T
The type of the cloned instance. |