Table of Contents

Class Sector

Namespace
Avalonia.Controls.Shapes
Assembly
Avalonia.Controls.dll

Represents a circular or elliptical sector (a pie-shaped closed region of a circle or ellipse).

public class Sector : Shape, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
Inheritance
Sector
Implements
Inherited Members
Extension Methods

Constructors

Sector()

public Sector()

Fields

StartAngleProperty

Defines the StartAngle property.

public static readonly StyledProperty<double> StartAngleProperty

Field Value

StyledProperty<double>

SweepAngleProperty

Defines the SweepAngle property.

public static readonly StyledProperty<double> SweepAngleProperty

Field Value

StyledProperty<double>

Properties

StartAngle

Gets or sets the angle at which the sector's arc starts, in degrees.

public double StartAngle { get; set; }

Property Value

double

SweepAngle

Gets or sets the angle, in degrees, added to the StartAngle defining where the sector's arc ends. A positive value is clockwise, negative is counter-clockwise.

public double SweepAngle { get; set; }

Property Value

double

Methods

CreateDefiningGeometry()

Creates the shape's defining geometry.

protected override Geometry? CreateDefiningGeometry()

Returns

Geometry

Defining Geometry of the shape.