Documents for PDF, .NET Edition Documentation
TextFormat Class Members
Properties  Methods 

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Text Namespace : TextFormat Class

The following tables list the members exposed by TextFormat.

Public Constructors
 NameDescription
Public ConstructorOverloaded.   
Top
Public Properties
 NameDescription
Public PropertyGets or sets the text background color. The default is transparent.  
Public PropertyGets or sets the GrapeCity.Documents.Drawing.Brush to fill the glyphs.

The FillBrush property has a priority over the ForeColor.

 
Public PropertyGets or sets a Font used by this format.

If not null, this value overrides the FontName property.

 
Public PropertyGets or sets a value indicating whether the font should be bolded.  
Public PropertyProvides access to a set of Microsoft OpenType typography properties.  
Public PropertyGets or sets whether the font should be italicized.  
Public PropertyGets or sets a font family name.

This value is used only if the Font property is null.

This value is case insensitive.

 
Public PropertyGets or sets the logical font size, in points or in graphic units.

The defalut value is 12.

See also the description of the FontSizeInGraphicUnits property.

 
Public PropertyGets or sets a value indicating whether FontSize specifies the font size in graphic units or in points.  
Public PropertyGets or sets the flags indicating the desired or emulated style of the font.  
Public PropertyGets or sets the text foreground color. The default is black.

The FillBrush property has a priority over the ForeColor.

 
Public PropertyGets or sets the scaling factor for the glyph advance value relative to font's Average Character Width.

Valid values are from 0.5 up. The default is 1.

 
Public PropertyGets or sets the absolute increment (delta) for the glyph advance value, in graphic units.  
Public PropertyGets or sets the preferred glyph widths (generally used in CJKV fonts).  
Public PropertyGets or sets a value indicating if the glyphs are hollow (outlined), otherwise they are solid.

The StrokePen property must be set in order to draw outlined glyphs.

 
Public PropertyGets or sets a value identifying the language system.  
Public PropertyGets or sets a value specifying the explicit line gap (if not null), in graphic units.  
Public PropertyGets or sets a palette used for drawing color fonts.  
Public PropertyGets or sets a value indicating whether the size of fallback font should be coerced to the size of original font (true by default).

This property does not affect behavior of linked fonts with specified scale factor.

 
Public PropertyGets or sets an OpenType script tag.  
Public PropertyGets or sets a value indicating if all characters should appear as rotated 90 or -90 degrees in vertical text.  
Public PropertyGets or sets a value indicating if the strikethrough style is applied to the text.  
Public PropertyGets or sets the GrapeCity.Documents.Drawing.Pen to draw glyph outlines.  
Public PropertyGets or sets a value indicating if the glyphs should be displayed as subscript.

Setting this property to true also sets the Superscript property to false.

 
Public PropertyGets or sets a value indicating whether the glyphs should be displayed as superscript.

Setting this property to true also sets the Subscript property to false.

 
Public PropertyGets or sets an arbitrary custom data associated with this TextFormat.  
Public PropertyGets or sets the flags indicating which decorations are applied to the text.  
Public PropertyGets or sets a value indicating if the whole TextRun should be considered as single Grapheme Cluster.

It allows to display several characters side-by-side horizontally in vertical text.

 
Public PropertyGets or sets a value indicating if ASCII characters should be transformed into fullwidth characters.  
Public PropertyGets or sets the offset of the text in the orthogonal direction, in graphic units.

The default is 0.

 
Public PropertyGets or sets a value indicating if the text is underlined.  
Public PropertyGets or sets a value indicating if the normally sideways characters should be drawn upright in vertical text.  
Public PropertyGets or sets a value indicating if typographical font metrics should be applied instead of Windows-specific and Apple-specific font metrics.

Font Ascender, Descender, and Line Gap are affected.

 
Public PropertyGets or sets a value indicating that for sideways text in vertical flow (see TextLayout.FlowDirection, line gap will be set according to Font.VerticalLineGap.

If false (the default), line gap for lines containing sideways text is set according to Font.HorizontalLineGap or Font.TypoLineGap, which can lead to different gaps between columns that contain sideways text runs and those that do not.

 
Top
Public Methods
 NameDescription
Public MethodCopies the current text format settings to another TextFormat object.  
Public Methodstatic (Shared in Visual Basic)Returns the Language value corresponding to a given System.Globalization.CultureInfo.  
Public Methodstatic (Shared in Visual Basic)Converts a ScriptCode value to the corresponding ScriptTag.  
Top
See Also

Reference

TextFormat Class
GrapeCity.Documents.Text Namespace