Click or drag to resize
TextFont Class
Provides access to the character format in a text range.
Inheritance Hierarchy
SystemObject
  TextObjectModelTextFont

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public class TextFont : IEquatable<TextFont>, 
	ICloneable, IDisposable

The TextFont type exposes the following members.

Methods
  NameDescription
Public methodClone
Gets a duplicate of this text font object.
Public methodCode exampleCopyFrom
Sets the character formatting by copying another text font object.
Public methodDispose
Releases all resources used by the TextFont
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TextFont and optionally releases the managed resources
Public methodEquals(Object)
Tests if this object is considered equal to another.
(Overrides ObjectEquals(Object).)
Public methodEquals(TextFont)
Tests if this TextFont is considered equal to another.
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetHashCode
Calculates a hash code for this object.
(Overrides ObjectGetHashCode.)
Public methodGetProperty
(TOM 2 only) Gets the value of a property.
Public methodGetPropertyInfo
(TOM 2 only) Gets the property type and value of the specified extra property.
Public methodReset
Resets the character formatting to the default character format.
Public methodSetProperty
(TOM 2 only) Sets the value of the specified property.
Top
Properties
  NameDescription
Public propertyAllCaps
Gets whether the characters are all uppercase.
Public propertyAutoLigatures
(TOM 2 only) Gets or sets whether support for automatic ligatures is active.
Public propertyAutospaceAlpha
(TOM 2 only) Gets or sets the East Asian "autospace alphabetics" state.
Public propertyAutospaceNumeric
(TOM 2 only) Gets or sets the East Asian "autospace numeric" state.
Public propertyAutospaceParens
(TOM 2 only) Gets or sets the East Asian "autospace parentheses" state.
Public propertyBackColor
Gets or sets the text background (highlight) color.
Public propertyBold
Gets or sets whether the characters are bold.
Public propertyCanChange
Determines whether the font can be changed.
Public propertyCharRep
(TOM 2 only) Gets or sets the character repertoire (writing system).
Public propertyCompressionMode
(TOM 2 only) Gets or sets the East Asian compression mode.
Public propertyCookie
(TOM 2 only) Gets or sets the client cookie.
Public propertyCount
(TOM 2 only) Gets the count of extra properties in this character formatting collection.
Public propertyDoubleStrike
(TOM 2 only) Gets or sets whether characters are displayed with double horizontal lines through the center.
Public propertyEffects
(TOM 2 only) Gets or sets the character format effects.
Public propertyEffects2
(TOM 2 only) Gets or sets the additional character format effects.
Public propertyEmboss
Gets or sets whether the characters are embossed.
Public propertyForeColor
Gets or sets the foreground (text) color.
Public propertyHidden
Gets or sets whether characters are hidden.
Public propertyItalic
Gets or sets whether characters are in italics.
Public propertyKerning
Gets or sets the minimum font size at which kerning occurs.
Public propertyLanguageID
Gets or sets the language ID or language code identifier (LCID).
Public propertyLinkType
(TOM 2 only) Gets the link type.
Public propertyMathZone
(TOM 2 only) Gets or sets whether a math zone is active.
Public propertyModWidthPairs
(TOM 2 only) Gets or sets whether "decrease widths on pairs" is active.
Public propertyModWidthSpace
(TOM 2 only) Gets or sets whether "increase width of whitespace" is active.
Public propertyName
Gets or sets the font name.
Public propertyOldNumbers
(TOM 2 only) Gets or sets whether old-style numbers are active.
Public propertyOutline
Gets or sets whether characters are displayed as outlined characters.
Public propertyOverlapping
(TOM 2 only) Gets or sets whether overlapping text is active.
Public propertyPosition
Gets or sets the amount that characters are offset vertically relative to the baseline.
Public propertyPositionSubSuper
(TOM 2 only) Gets or sets the subscript or superscript position relative to the baseline (as a percent of the font height).
Public propertyProtected
Gets or sets whether characters are protected against attempts to modify them.
Public propertyShadow
Gets or sets whether characters are displayed as shadowed characters.
Public propertySize
Gets or sets the font size, in points.
Public propertySmallCaps
Gets or sets whether characters are in small capital letters.
Public propertySpaceExtension
(TOM 2 only) Gets or sets the East Asian space extension value.
Public propertyStrikeThrough
Gets or sets whether characters are displayed with a horizontal line through the center.
Public propertyStyle
Gets or sets the character style handle of the characters in a range.
Public propertySubscript
Gets or sets whether characters are displayed as subscript.
Public propertySuperscript
Gets or sets whether characters are displayed as superscript.
Public propertyUnderlineColor
Gets or sets the underline color for the characters in a range.
Public propertyUnderlinePositionMode
(TOM 2 only) Gets or sets the underline position mode.
Public propertyUnderlineStyle
Gets or sets the type of underlining for the characters in a range.
Public propertyWeight
Gets or sets the font weight for the characters in a range.
Top
Remarks

Managed wrapper class for the COM interface ITextFont, including ITextFont2 functionality.

Most properties of this class are implemented using nullable types. If a property returns null, its value is undefined. Properties may be undefined if the range spans several character formats.

See Also