Skip to content

TextBlock.TextTrimming

property · TextBlock · cAlgo.API

DesktopCLICloud

Gets or sets the text trimming behavior when the content overflows the content area.

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 TextTrimming TextTrimming {get; set;}
textBlock.TextTrimming: TextTrimming

Returns TextTrimming

Examples

var textBlock = new TextBlock { Text = "A very long position label that does not fit", Width = 120, TextTrimming = TextTrimming.CharacterEllipsis };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "A very long position label that does not fit"
textBlock.Width = 120
textBlock.TextTrimming = TextTrimming.CharacterEllipsis
api.Chart.AddControl(textBlock)