Gets or sets the direction of the text within the field.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute(TextDirectionEnum.Normal)] public TextDirectionEnum TextDirection { get; set; } |
Visual Basic |
---|
<DefaultValueAttribute(TextDirectionEnum.Normal)> _ Public Property TextDirection As TextDirectionEnum Get Set |
Remarks
Not all output formats support vertical text. The preview, print, PDF, TIFF, and XLS formats do support vertical text. The HTML, RTF, and plain text formats do not.
The default value for this property is TextDirectionEnum.Normal.
Examples
The following code creates a field that displays the label "Products Report" and sets the direction of the text Down:
Copy CodeVisual Basic
Me.rptProducts.Fields(0).Text = "Products Report" Me.rptProducts.Fields(0).CanGrow = True Me.rptProducts.Fields(0).TextDirection = TextDirectionEnum.Down |
Copy CodeC#
this.rptProducts.Fields[0].Text = "Products Report"; this.rptProducts.Fields[0].CanGrow = true; this.rptProducts.Fields[0].TextDirection = TextDirectionEnum.Down; |
Note that the CanGrow property is set to True to allow the field to automatically adjust the height to fit the field's contents.