[]
        
(Showing Draft Content)

C1.Report.TextFieldBase

TextFieldBase Class

Abstract base class for ParagraphField, TextField and CheckBoxField.

Namespace: C1.Report
Assembly: C1.FlexReport.dll
Syntax
public abstract class TextFieldBase : FieldBase, IScriptContextProvider, ICloneable

Constructors

Name Description
TextFieldBase()

Initializes a new instance of the TextFieldBase class.

Properties

Name Description
Align

Gets or sets a value determining how text is aligned within the field.

Font

Gets or sets the text font.

ForeColor

Gets or sets the field's foreground color.

LineSpacing

Gets or sets the line spacing between text lines in the field, in percent. The default is 100 which corresponds to normal line spacing.

ParentReport

Gets the FlexReport containing this field.

TextAngle

Gets or sets the angle of text rotation within the field.

TextFitMode

Specifies how text is adjusted to fit in the field's bounds.

  • NoneText is not adjusted.
  • The font size is adjusted (increased or decreased) so that text fits in the specified bounds.
  • The spacing between characters is adjusted (increased or decreased) so that text fits in the specified bounds.
Unless TextFitMode is None, the WordWrap property is ignored (hard breaks are still respected though).
WordWrap

Gets or sets a value indicating whether automatic word wrapping is on.

WritingMode

Gets or sets the text writing mode: horizontal (default), vertical with left to right flow, etc.

Methods

Name Description
AfterRender()

Called where report rendering finish. Can be used to finalize object after rendering.

AssignFrom(ReportObject, bool)

Copies properties from another object into this object.

BuildStyleKey(StyleKey)
GetText()

Gets all drawing text from this field.

ResetFont()

Restore the Font property to its default value.

ResetState()

Called when C1FlexReport starts calculation of the section containing this FieldBase. Resets internal state of the field.