HorizontalAlignment
enum cAlgo.API
DesktopCLICloud
Describes horizontal position related to an anchor point or a parent element
Definition
public enum HorizontalAlignment
Namespace: cAlgo.API · Group: Chart
Examples
Example 1
var textBlock = new TextBlock
{
Text = "Top right corner",
HorizontalAlignment = HorizontalAlignment.Right,
VerticalAlignment = VerticalAlignment.Top
};
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "Top right corner"
textBlock.HorizontalAlignment = HorizontalAlignment.Right
textBlock.VerticalAlignment = VerticalAlignment.Top
api.Chart.AddControl(textBlock)
Example 2
Chart.DrawStaticText("info", "Centered at the bottom", VerticalAlignment.Bottom, HorizontalAlignment.Center, Color.Yellow);
api.Chart.DrawStaticText("info", "Centered at the bottom", VerticalAlignment.Bottom, HorizontalAlignment.Center, Color.Yellow)
Values
| Name | Value | Description |
|---|---|---|
Center | 0 | Center horizontal alignment. |
Left | 1 | Left horizontal alignment. |
Right | 2 | Right horizontal alignment. |
Stretch | 3 | Stretch horizontal alignment. |