Skip to content

ControlBase.VerticalAlignment

property · ControlBase · cAlgo.API

DesktopCLICloud

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

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public VerticalAlignment VerticalAlignment {get; set;}
controlBase.VerticalAlignment: VerticalAlignment

Returns VerticalAlignment

Examples

var textBlock = new TextBlock { Text = "Bottom right", VerticalAlignment = VerticalAlignment.Bottom, HorizontalAlignment = HorizontalAlignment.Right };
Chart.AddControl(textBlock);
Print("Vertical alignment: {0}", textBlock.VerticalAlignment);
textBlock = TextBlock()
textBlock.Text = "Bottom right"
textBlock.VerticalAlignment = VerticalAlignment.Bottom
textBlock.HorizontalAlignment = HorizontalAlignment.Right
api.Chart.AddControl(textBlock)
api.Print(f"Vertical alignment: {textBlock.VerticalAlignment}")