TextStyle Class

Class holding the data for the text style.
Public Class TextStyle 
Implements ICloneable, _ 
IKeyedCollectionItem(Of TextStyle)
This language is not supported or no code example is available.
public class TextStyle : ICloneable
IKeyedCollectionItem<TextStyle>
This language is not supported or no code example is available.
Name Description
Public constructor TextStyle() Obsolete. Empty constructor.
Public constructor TextStyle(string, FontStyle, double) Obsolete. Standard constructor.
Public constructor TextStyle(SerializationInfo, StreamingContext) Constructor for deserializing objects.
Public constructor TextStyle(TextStyle) Copy constructor.
Public constructor TextStyle(string, string, FontStyle, double) Standard constructor.
Top
Name Description
Public property FileName The SHX file name (for SHX fonts).
Public property FontFamilyName Gets or sets te font family name.
Public property Name Gets or sets text style name.
Public property Style Gets or sets the font style.
Public property WidthFactor Gets or sets the width factor.
Top
Methods
 
Name Description
Public method Clone() Creates a new object that is a copy of the current instance.
Public method ConvertToSurrogate()
Public method Equals(TextStyle) Compares text style names ignoring cases.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode()
Public method GetKey()
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method OnKeyChanged(string, string) When the Name changes I need to notify it to the related keyed collections before changing it.
Public method SetKey(string)
Public method ToString()
Top
Events
 
Name Description
Public event KeyChanged Occurs when the Name changes.
Top

.NET Framework

Supported in: 4.8

In this article

Definition