New to Telerik Document ProcessingStart a free 30-day trial

Graphics state for path and shape rendering—controls fill and stroke color, thickness, caps/joins, and dash patterns that affect drawing output. Use to configure how subsequent geometries are painted on the page.

Definition

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

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class GraphicProperties : PropertiesBase<GraphicProperties>

Inheritance: objectPropertiesBase<GraphicProperties>GraphicProperties

Inherited Members PropertiesBase<GraphicProperties>.Save()PropertiesBase<GraphicProperties>.Restore()

Constructors

Initializes a new instance of the GraphicProperties class.

C#
public GraphicProperties()

Fields

Gets or sets the fill color.

C#
public ColorBase FillColor
Field Value:

The color of the fill.

Gets or sets a value indicating whether the drawn geometry's interior should be filled. When true, the geometry will be filled with the current FillColor.

C#
public bool IsFilled
Field Value:

true if the geometry should be filled; otherwise, false.

Gets or sets a value indicating whether the outline of the drawn geometry should be stroked. When true, the geometry's outline will be drawn with the current StrokeColor and StrokeThickness.

C#
public bool IsStroked
Field Value:

true if the geometry's outline should be stroked; otherwise, false.

Gets or sets the miter limit which determines when a miter join is beveled. When the length of the miter at a join exceeds the product of this value and the line width, the join is converted from a miter to a bevel.

C#
public double? MiterLimit
Field Value:

A nullable double value representing the miter limit ratio.

Gets or sets the stroke color.

C#
public ColorBase StrokeColor
Field Value:

The color of the stroke.

Gets or sets the pattern of dashes and gaps used to stroke paths. The array contains alternating values for the dash length and gap length in device-independent units.

C#
public IEnumerable<double> StrokeDashArray
Field Value:

A collection of double values that define the pattern of dashes and gaps.

Gets or sets the distance into the dash pattern to start the dash. This allows shifting the pattern along the stroke without modifying the pattern itself.

C#
public double StrokeDashOffset
Field Value:

A double value representing the stroke dash offset in device-independent units.

Gets or sets the shape to be used at the ends of open stroked paths.

C#
public LineCap StrokeLineCap
Field Value:

A LineCap enumeration value that determines how the ends of stroked paths are rendered.

Gets or sets the shape to be used at the corners of stroked paths.

C#
public LineJoin StrokeLineJoin
Field Value:

A LineJoin enumeration value that determines how the corners of stroked paths are rendered.

Gets or sets the stroke thickness.

C#
public double StrokeThickness
Field Value:

The stroke thickness.

Methods

Copies the graphic properties from fromProperties instance.

C#
public override void CopyFrom(GraphicProperties graphicProperties)
Parameters:graphicPropertiesGraphicProperties

The graphic properties.

Overrides: PropertiesBase<GraphicProperties>.CopyFrom(GraphicProperties)