Class
GraphicProperties

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:

cs-api-definition
public class GraphicProperties : PropertiesBase<GraphicProperties>

Inheritance: objectPropertiesBase<GraphicProperties>GraphicProperties

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

Constructors

GraphicProperties()

Initializes a new instance of the GraphicProperties class.

Declaration

cs-api-definition
public GraphicProperties()

Fields

FillColor

Gets or sets the fill color.

Declaration

cs-api-definition
public ColorBase FillColor

Field Value

ColorBase

The color of the fill.

IsFilled

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.

Declaration

cs-api-definition
public bool IsFilled

Field Value

bool

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

IsStroked

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.

Declaration

cs-api-definition
public bool IsStroked

Field Value

bool

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

MiterLimit

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.

Declaration

cs-api-definition
public double? MiterLimit

Field Value

double?

A nullable double value representing the miter limit ratio.

StrokeColor

Gets or sets the stroke color.

Declaration

cs-api-definition
public ColorBase StrokeColor

Field Value

ColorBase

The color of the stroke.

StrokeDashArray

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.

Declaration

cs-api-definition
public IEnumerable<double> StrokeDashArray

Field Value

IEnumerable<double>

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

StrokeDashOffset

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.

Declaration

cs-api-definition
public double StrokeDashOffset

Field Value

double

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

StrokeLineCap

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

Declaration

cs-api-definition
public LineCap StrokeLineCap

Field Value

LineCap

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

StrokeLineJoin

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

Declaration

cs-api-definition
public LineJoin StrokeLineJoin

Field Value

LineJoin

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

StrokeThickness

Gets or sets the stroke thickness.

Declaration

cs-api-definition
public double StrokeThickness

Field Value

double

The stroke thickness.

Methods

CopyFrom(GraphicProperties)

Copies the graphic properties from fromProperties instance.

Declaration

cs-api-definition
public override void CopyFrom(GraphicProperties graphicProperties)

Parameters

graphicProperties

GraphicProperties

The graphic properties.

Overrides PropertiesBase<GraphicProperties>.CopyFrom(GraphicProperties)