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.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Graphics

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class Path : PositionContentElement, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseContentElementBasePositionContentElementPath

Implements: IFixedDocumentElement

Inherited Members PositionContentElement.PositionContentElementBase.ClippingFixedDocumentElementBase.Parent

Constructors

Path()

Initializes a new instance of the Path class.

Declaration

cs-api-definition
public Path()

Properties

AlphaConstant

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

Declaration

cs-api-definition
public double? AlphaConstant { get; set; }

Property Value

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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public bool IsFilled { get; set; }

Property Value

bool

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

cs-api-definition
public bool IsStroked { get; set; }

Property Value

bool

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

MiterLimit

Gets or sets the miter limit.

Declaration

cs-api-definition
public double? MiterLimit { get; set; }

Property Value

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

cs-api-definition
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

cs-api-definition
public double? StrokeAlphaConstant { get; set; }

Property Value

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

cs-api-definition
public IEnumerable<double> StrokeDashArray { get; set; }

Property Value

IEnumerable<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

cs-api-definition
public double StrokeDashOffset { get; set; }

Property Value

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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public double StrokeThickness { get; set; }

Property Value

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

cs-api-definition
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

cs-api-definition
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>()