Skip to content

ControlBase

Summary

Represents the base of chart controls.

Signature

1
public abstract class ControlBase

Namespace

cAlgo.API

Methods

ResetProperty

Summary

Sets the property to the default value and removes its privelege over the style.

Signature

1
public void ResetProperty(ControlProperty property)

Parameters

Name Type Description
property ControlProperty Control Property

Return Value

void

Accept

Signature

1
internal void Accept(IChartControlVisitor visitor)

Parameters

Name Type Description
visitor IChartControlVisitor

Return Value

void

Attach

Signature

1
internal void Attach(IChartControlNotifyProvider notifyProvider)

Parameters

Name Type Description
notifyProvider IChartControlNotifyProvider

Return Value

void

Detach

Signature

1
internal void Detach()

Return Value

void

RaiseModified

Signature

1
internal void RaiseModified()

Return Value

void

RegisterProperty

Signature

1
internal ControlDependencyProperty<T> RegisterProperty(ControlProperty property, T defaultValue)

Parameters

Name Type Description
property ControlProperty
defaultValue T

Return Value

ControlDependencyProperty

OverridePropertyDefaultValue

Signature

1
internal void OverridePropertyDefaultValue(ControlProperty property, T defaultValue)

Parameters

Name Type Description
property ControlProperty
defaultValue T

Return Value

void

TrySetChildControl

Signature

1
internal void TrySetChildControl(ControlBase& childControl, ControlBase value)

Parameters

Name Type Description
childControl ControlBase&
value ControlBase

Return Value

void

SetDefaultValues

Signature

1
private void SetDefaultValues()

Return Value

void

ChangeToZeroIfNegative

Signature

1
private static double ChangeToZeroIfNegative(double value)

Parameters

Name Type Description
value double

Return Value

double

Properties

UniqueId

Summary

Gets the unique identifier of a chart control.

Signature

1
public Guid UniqueId {get;}

Return Value

Guid

Style

Summary

Gets or sets the style of a chart control.

Signature

1
public Style Style {get; set;}

Return Value

Style

Related Tutorials

Left

Summary

Gets or sets the position of the chart control to the left side of the chart area. Works only when the control isinside the Canvas panel.

Signature

1
public double Left {get; set;}

Return Value

double

Top

Summary

Gets or sets the position of the chart control to the top of the chart area. Works only when the control is insidethe Canvas panel.

Signature

1
public double Top {get; set;}

Return Value

double

Summary

Gets or sets the position of the chart control to the rignt side of the chart area. Works only when the control isinside the Canvas panel.

Signature

1
public double Right {get; set;}

Return Value

double

Bottom

Summary

Gets or sets the position of the chart control to the bottom of the chart area. Works only when the control isinside the Canvas panel.

Signature

1
public double Bottom {get; set;}

Return Value

double

Width

Summary

Gets or sets the width of the chart control.

Signature

1
public double Width {get; set;}

Return Value

double

Height

Summary

Gets or sets the hight of the chart control.

Signature

1
public double Height {get; set;}

Return Value

double

MinWidth

Summary

Gets or sets the minimum width of the chart control.

Signature

1
public double MinWidth {get; set;}

Return Value

double

MinHeight

Summary

Gets or sets the minimum height of the chart control.

Signature

1
public double MinHeight {get; set;}

Return Value

double

MaxWidth

Summary

Gets or sets the maximum width of the chart control.

Signature

1
public double MaxWidth {get; set;}

Return Value

double

MaxHeight

Summary

Gets or sets the maximum height of the chart control.

Signature

1
public double MaxHeight {get; set;}

Return Value

double

IsEnabled

Summary

Gets or sets the value indicating whether this instance of the chart control is enabled.

Signature

1
public bool IsEnabled {get; set;}

Return Value

bool

IsVisible

Summary

Gets or sets the value indicating whether this instance of the chart control instance is visible.

Signature

1
public bool IsVisible {get; set;}

Return Value

bool

Opacity

Summary

Gets or sets the level of opacity of the chart control instance. Can be set from 0 (transparent) to 1 (opaque).Values higher than 1 will be set to 1, values below 0 will be set to 0.

Signature

1
public double Opacity {get; set;}

Return Value

double

Margin

Summary

Gets or sets the level of thickness of the margin of the chart control instance. Property value can be set usingThickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "1 2 3 4".

Signature

1
public Thickness Margin {get; set;}

Return Value

Thickness

VerticalAlignment

Summary

Gets or sets the vertical alignment of the chart control instance.

Signature

1
public VerticalAlignment VerticalAlignment {get; set;}

Return Value

VerticalAlignment

HorizontalAlignment

Summary

Gets or sets the horizontal alignment of the chart control instance.

Signature

1
public HorizontalAlignment HorizontalAlignment {get; set;}

Return Value

HorizontalAlignment

Dock

Summary

Specifies the dock position of the chart control instance. Works only inside the DockPanel.

Signature

1
public Dock Dock {get; set;}

Return Value

Dock

Related Tutorials

IsHitTestVisible

Summary

Gets or sets a value that declares if the chart control instance is visible for the mouse hit testing. If set tofalse, then the control will not handle any mouse events.

Signature

1
public bool IsHitTestVisible {get; set;}

Return Value

bool