Class TextElement
PDF text element
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Media.PDF.Elements
Assembly: Azos.Media.dll
Syntax
public class TextElement : PdfElement, IPdfObject
Constructors
TextElement(String)
Declaration
public TextElement(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content |
TextElement(String, Single, PdfFont)
Declaration
public TextElement(string content, float fontSize, PdfFont font)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | |
System.Single | fontSize | |
PdfFont | font |
TextElement(String, Single, PdfFont, PdfColor)
Declaration
public TextElement(string content, float fontSize, PdfFont font, PdfColor color)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | |
System.Single | fontSize | |
PdfFont | font | |
PdfColor | color |
Properties
Color
PDF Color
Declaration
public PdfColor Color { get; set; }
Property Value
Type | Description |
---|---|
PdfColor |
Content
Text content
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Font
PDF Font
Declaration
public PdfFont Font { get; set; }
Property Value
Type | Description |
---|---|
PdfFont |
FontSize
Font size
Declaration
public float FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Write(PdfWriter)
Writes element into file stream
Declaration
public override void Write(PdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
PdfWriter | writer | PDF writer |