Class ColumnSegment
Represents chart column segment.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ColumnSegment : ChartSegment, INotifyPropertyChanged
Remarks
Class instance is created automatically by WINRT Chart building system.
Constructors
ColumnSegment()
Called when instance created for ColumnSegment.
Declaration
public ColumnSegment()
ColumnSegment(Double, Double, Double, Double)
Called when instance created for ColumnSegment
Declaration
public ColumnSegment(double x1, double y1, double x2, double y2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x1 | |
| System.Double | y1 | |
| System.Double | x2 | |
| System.Double | y2 |
ColumnSegment(Double, Double, Double, Double, ColumnSeries)
Defines the Column Rectangle
Declaration
public ColumnSegment(double x1, double y1, double x2, double y2, ColumnSeries series)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x1 | |
| System.Double | y1 | |
| System.Double | x2 | |
| System.Double | y2 | |
| ColumnSeries | series |
Fields
Bottom
Variables declarations
Declaration
protected double Bottom
Field Value
| Type |
|---|
| System.Double |
control
Set corresponding content control.
Declaration
protected ContentControl control
Field Value
| Type |
|---|
| System.Windows.Controls.ContentControl |
Left
Variables declarations
Declaration
protected double Left
Field Value
| Type |
|---|
| System.Double |
RectSegment
RectSegment property declarations
Declaration
protected Rectangle RectSegment
Field Value
| Type |
|---|
| System.Windows.Shapes.Rectangle |
Right
Variables declarations
Declaration
protected double Right
Field Value
| Type |
|---|
| System.Double |
Top
Variables declarations
Declaration
protected double Top
Field Value
| Type |
|---|
| System.Double |
Properties
Height
Gets or sets the Height of the ColumnSegment.
Declaration
public double Height { get; set; }
Property Value
| Type |
|---|
| System.Double |
RectX
Gets or sets the X position of the segment rect.
Declaration
public double RectX { get; set; }
Property Value
| Type |
|---|
| System.Double |
RectY
Gets or sets the Y position of the segment RectY.
Declaration
public double RectY { get; set; }
Property Value
| Type |
|---|
| System.Double |
Width
Gets or sets the Width of the ColumnSegment.
Declaration
public double Width { get; set; }
Property Value
| Type |
|---|
| System.Double |
XData
Gets the data point value, bind with x for this segment.
Declaration
public double XData { get; }
Property Value
| Type |
|---|
| System.Double |
YData
Gets the data point value, bind with y for this segment.
Declaration
public double YData { get; }
Property Value
| Type |
|---|
| System.Double |
Methods
CreateVisual(Size)
Used for creating UIElement for rendering this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override UIElement CreateVisual(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | size | Size of the panel |
Returns
| Type | Description |
|---|---|
| System.Windows.UIElement | retuns UIElement |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
| Type | Description |
|---|---|
| System.Windows.UIElement | reurns UIElement |
Overrides
OnSizeChanged(Size)
Called whenever the segment's size changed. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override void OnSizeChanged(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | size |
Overrides
SetData(Double[])
Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override void SetData(params double[] Values)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | Values |
Overrides
SetVisualBindings(Shape)
Method implementation for Set Bindings to properties in ColumnSegment.
Declaration
protected override void SetVisualBindings(Shape element)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Shapes.Shape | element |
Overrides
Update(IChartTransformer)
Updates the segments based on its data point value. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override void Update(IChartTransformer transformer)
Parameters
| Type | Name | Description |
|---|---|---|
| Syncfusion.UI.Xaml.Charts.IChartTransformer | transformer | Represents the view port of chart control.(refer Syncfusion.UI.Xaml.Charts.IChartTransformer) |