Click or drag to resize

AnnotationFont Class

This class represents a font used with annotations.
Inheritance Hierarchy
SystemObject
  Atalasoft.AnnotateAnnotationFont

Namespace:  Atalasoft.Annotate
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class AnnotationFont : ISerializable

The AnnotationFont type exposes the following members.

Constructors
  NameDescription
Public methodAnnotationFont
Creates a new instance of AnnotationFont of type Arial and size 12.
Public methodAnnotationFont(SerializationInfo, StreamingContext)
Creates a new instance of AnnotationFont from serialized data.
Public methodAnnotationFont(String, Single)
Creates a new instance of AnnotationFont specifying the font name and size.
Public methodAnnotationFont(String, Single, Boolean, Boolean, Boolean, Boolean)
Creates a new instance of AnnotationFont specifying the font parameters.
Top
Properties
  NameDescription
Public propertyBold
Gets or sets a value indicating whether the font is bold.
Public propertyCharSet
Gets or sets the character set for this font.
Public propertyItalic
Gets or sets a value indicating whether the font is italic.
Public propertyName
Gets or sets the name of the font.
Public propertySize
Gets or sets the size of the font in points.
Public propertyStrikeout
Gets or sets a value indicating whether the font has a strikeout.
Public propertyUnderline
Gets or sets a value indicating whether the font is underlined.
Top
Methods
  NameDescription
Public methodClone
Creates a copy of this AnnotationFont.
Public methodEquals
Compares the AnnotationFont with another to see if they are equal.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetObjectData
Fills a SerializationInfo object with information about this AnnotationFont.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAnnotationControllerNotification
Called to notify the AnnotationController about a property change.
Protected methodOnPropertyChanged
Called when a property value has changed and raises the PropertyChanged event.
Protected methodOnPropertyChanging
Called before a property has been changed.
Public methodToString
Returns a string representation of this object.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventAnnotationControllerNotification
Raised after a property of the AnnotationFont is modified.
Public eventPropertyChanged
Raised when a property value has changed.
Public eventPropertyChanging
Raised just before a property is about to be modified.
Top
Fields
  NameDescription
Public fieldStatic memberFallbackFontName
The FallbackFontName is used when a deserialized or requested font does not exist on the system.
Top
Examples
The following example prepares an AnnotationViewer to create a new TextAnnotation with a Times New Roman font.
AnnotationFont font = new AnnotationFont("Times New Roman", 16);
TextAnnotation txt = new TextAnnotation("My New TextAnnotation", font);
this.annotateViewer1.Annotations.CreateAnnotation(txt);
See Also