New to Telerik Document Processing? Start a free 30-day trial

Path

Class

Vector path element for drawing shapes in page content; configure fill and stroke to render outlines and areas in the document’s coordinate space.

Definition

Namespace:Telerik.Documents.Fixed.Model.Graphics

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class Path : PositionContentElement, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseContentElementBasePositionContentElementPath

Implements: IFixedDocumentElement

Inherited Members PositionContentElement.PositionContentElementBase.ClippingFixedDocumentElementBase.Parent

Constructors

Initializes a new instance of the Path class.

C#
public Path()

Properties

Gets or sets the alpha constant. Specifying the constant shape or constant opacity value to be used for nonstroking operations.

C#
public double? AlphaConstant { get; set; }
Property Value:

The alpha constant value between 0.0 (transparent) and 1.0 (opaque), or null to use default opacity.

Gets or sets the color used to fill the interior of the path.

C#
public ColorBase Fill { get; set; }
Property Value:

The fill color, or null if the path should not be filled.

Gets or sets the geometric shape that defines the path's outline and area.

C#
public GeometryBase Geometry { get; set; }
Property Value:

The geometry object that describes the path's shape.

Gets or sets a value indicating whether the path's interior should be filled with color.

C#
public bool IsFilled { get; set; }
Property Value:

True if the path should be filled; otherwise, false.

Gets or sets a value indicating whether the path's outline should be drawn.

C#
public bool IsStroked { get; set; }
Property Value:

True if the path outline should be stroked; otherwise, false.

Gets or sets the miter limit.

C#
public double? MiterLimit { get; set; }
Property Value:

The miter limit ratio, or null to use the default system value.

Gets or sets the color used to draw the outline of the path.

C#
public ColorBase Stroke { get; set; }
Property Value:

The stroke color, or null if the path outline should not be drawn.

Gets or sets the stroke alpha constant. Specifying the constant shape or constant opacity value to be used for stroking operations.

C#
public double? StrokeAlphaConstant { get; set; }
Property Value:

The stroke alpha constant value between 0.0 (transparent) and 1.0 (opaque), or null to use default opacity.

Gets or sets the dash pattern applied to the stroke outline of the path.

C#
public IEnumerable<double> StrokeDashArray { get; set; }
Property Value:

An enumerable collection of doubles representing the dash pattern lengths, or null for a solid line.

Gets or sets the stroke dash offset.

C#
public double StrokeDashOffset { get; set; }
Property Value:

The offset distance in user units from the beginning of the dash pattern.

Gets or sets the style of line caps used at the endpoints of the path's stroke.

C#
public LineCap StrokeLineCap { get; set; }
Property Value:

The line cap style that determines how stroke endpoints are rendered.

Gets or sets the stroke line join.

C#
public LineJoin StrokeLineJoin { get; set; }
Property Value:

The line join style that determines how stroke line segments are joined together.

Gets or sets the width of the path's outline stroke in user units.

C#
public double StrokeThickness { get; set; }
Property Value:

The thickness of the stroke line used to draw the path outline.

Methods

Creates a deep copy of this path element with all its properties and geometry.

C#
public Path Clone()
Returns:

Path

A new Path instance that is a complete copy of this path.

Creates a new instance of the path for cloning purposes.

C#
protected override T CreateClonedInstance<T>() where T : PositionContentElement
Returns:

T

A new instance of the specified type containing the cloned path data.

Overrides: PositionContentElement.CreateClonedInstance<T>()