Class ChartCartesianAxisLabelsPanel
Represents layout panel for ChartAxisLabel.
Inheritance
Implements
Namespace: Syncfusion.Windows.Chart
Assembly: Syncfusion.Chart.Wpf.dll
Syntax
public sealed class ChartCartesianAxisLabelsPanel : Panel, IDisposable
Constructors
ChartCartesianAxisLabelsPanel()
Initializes a new instance of the ChartCartesianAxisLabelsPanel class.
Declaration
public ChartCartesianAxisLabelsPanel()
Fields
AxisProperty
Identifies the Axis dependency property.
Declaration
public static readonly DependencyProperty AxisProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
EdgeLabelsDrawingModeProperty
Identifies the EdgeLabelsDrawingMode dependency property.
Declaration
public static readonly DependencyProperty EdgeLabelsDrawingModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HidePartialLabelProperty
Identifies the HidePartialLabel dependency property.
Declaration
public static readonly DependencyProperty HidePartialLabelProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IntersectActionProperty
Identifies the IntersectAction dependency property.
Declaration
public static readonly DependencyProperty IntersectActionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelAlignmentProperty
Identifies the Label alignment dependency property.
Declaration
public static readonly DependencyProperty LabelAlignmentProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelRotateAngleProperty
Identifies the LabelRotateAngle dependency property.
Declaration
public static readonly DependencyProperty LabelRotateAngleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
OpposedPositionProperty
Identifies the OpposedPosition dependency property.
Declaration
public static readonly DependencyProperty OpposedPositionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
Axis
Gets or sets the value of the Axis. This is a dependency property.
Declaration
public ChartAxis Axis { get; set; }
Property Value
| Type |
|---|
| ChartAxis |
EdgeLabelsDrawingMode
Gets or sets a value indicating mode that controls partially visible labels behaviour.
Declaration
public EdgeLabelsDrawingMode EdgeLabelsDrawingMode { get; set; }
Property Value
| Type | Description |
|---|---|
| EdgeLabelsDrawingMode |
|
HidePartialLabel
Gets or sets a value indicating whether partial labels should be hidden.
Declaration
public bool HidePartialLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IntersectAction
Gets or sets type of action that should be taken to prevent labels intersection. This is a dependency property.
Declaration
public ChartLabelIntersectAction IntersectAction { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartLabelIntersectAction | The intersect action. |
See Also
LabelAlignment
Gets or sets the label alignment. This is a dependency property.
Declaration
public ChartAlignment LabelAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartAlignment | The label alignment. |
LabelRotateAngle
Gets or sets the labels rotate angle. This is a dependency property.
Declaration
public double LabelRotateAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The label rotate angle in degrees. |
Remarks
Property represents angle that labels on axis should be rotated by.
See Also
OpposedPosition
Gets or sets a value indicating whether axis labels panel should be positioned opposed to to regular axis position. This is a dependency property.
Declaration
public bool OpposedPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Orientation
Gets or sets the orientation. This is a dependency property.
Declaration
public Orientation Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Controls.Orientation | The labels panel orientation. |
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a System.Windows.FrameworkElement derived class.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
| Type | Description |
|---|---|
| System.Windows.Size | The actual size used. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
GetPosition(DependencyObject)
Gets the position of passed object on panel.
Declaration
public static double GetPosition(DependencyObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj | The object. |
Returns
| Type | Description |
|---|---|
| System.Double | Object's position. |
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.Windows.FrameworkElement-derived class.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | availableSize | The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
| Type | Description |
|---|---|
| System.Windows.Size | The size that this element determines it needs during layout, based on its calculations of child element sizes. |
OnAxisChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises AxisChanged event.
Declaration
public void OnAxisChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
SetPosition(DependencyObject, Double)
Sets the position of passed object on panel.
Declaration
public static void SetPosition(DependencyObject obj, double position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj | The obj value. |
| System.Double | position | The position. |
Events
AxisChanged
Event that is raised when Axis property is changed.
Declaration
public event PropertyChangedCallback AxisChanged
Event Type
| Type |
|---|
| System.Windows.PropertyChangedCallback |