C# 클래스 iTextSharp.text.Font

Contains all the specifications of a font: fontfamily, size, style and color.
상속: IComparable
파일 보기 프로젝트 열기: red-gate/iTextSharp-4.1.6 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( Object obj ) : int

Compares this Font with another

Difference ( Font font ) : Font

Replaces the attributes that are equal to null with the attributes of a given font.

Font ( ) : System

Constructs a Font.

Font ( BaseFont bf ) : System

Constructs a Font.

Font ( BaseFont bf, float size ) : System

Constructs a Font.

Font ( BaseFont bf, float size, int style ) : System

Constructs a Font.

Font ( BaseFont bf, float size, int style, Color color ) : System

Constructs a Font.

Font ( Font other ) : System
Font ( int family ) : System

Constructs a Font.

Font ( int family, float size ) : System

Constructs a Font.

Font ( int family, float size, int style ) : System

Constructs a Font.

Font ( int family, float size, int style, Color color ) : System

Constructs a Font.

GetCalculatedBaseFont ( bool specialEncoding ) : BaseFont
GetCalculatedLeading ( float linespacing ) : float
GetFamilyIndex ( string family ) : int

Translates a string-value of a certain family into the index that is used for this family in this class.

GetStyleValue ( string style ) : int

Translates a string-value of a certain style into the index value is used for this style in this class.

IsBold ( ) : bool

checks if this font is Bold.

IsItalic ( ) : bool

checks if this font is Bold.

IsStandardFont ( ) : bool

Checks if the properties of this font are undefined or null.

If so, the standard should be used.

IsStrikethru ( ) : bool

checks if the style of this font is STRIKETHRU.

IsUnderlined ( ) : bool

checks if this font is underlined.

SetColor ( int red, int green, int blue ) : void

Sets the color.

SetFamily ( String family ) : void

Sets the family using a String ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").

SetStyle ( String style ) : void

Sets the style using a String containing one of more of the following values: normal, bold, italic, underline, strike.

SetStyle ( int style ) : void

메소드 상세

CompareTo() 공개 메소드

Compares this Font with another
public CompareTo ( Object obj ) : int
obj Object the other Font
리턴 int

Difference() 공개 메소드

Replaces the attributes that are equal to null with the attributes of a given font.
public Difference ( Font font ) : Font
font Font the font of a bigger element class
리턴 Font

Font() 공개 메소드

Constructs a Font.
public Font ( ) : System
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( BaseFont bf ) : System
bf iTextSharp.text.pdf.BaseFont the external font
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( BaseFont bf, float size ) : System
bf iTextSharp.text.pdf.BaseFont the external font
size float the size of this font
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( BaseFont bf, float size, int style ) : System
bf iTextSharp.text.pdf.BaseFont the external font
size float the size of this font
style int the style of this font
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( BaseFont bf, float size, int style, Color color ) : System
bf iTextSharp.text.pdf.BaseFont the external font
size float the size of this font
style int the style of this font
color Color the Color of this font.
리턴 System

Font() 공개 메소드

public Font ( Font other ) : System
other Font
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( int family ) : System
family int the family to which this font belongs
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( int family, float size ) : System
family int the family to which this font belongs
size float the size of this font
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( int family, float size, int style ) : System
family int the family to which this font belongs
size float the size of this font
style int the style of this font
리턴 System

Font() 공개 메소드

Constructs a Font.
public Font ( int family, float size, int style, Color color ) : System
family int the family to which this font belongs
size float the size of this font
style int the style of this font
color Color the Color of this font.
리턴 System

GetCalculatedBaseFont() 공개 메소드

public GetCalculatedBaseFont ( bool specialEncoding ) : BaseFont
specialEncoding bool
리턴 iTextSharp.text.pdf.BaseFont

GetCalculatedLeading() 공개 메소드

public GetCalculatedLeading ( float linespacing ) : float
linespacing float
리턴 float

GetFamilyIndex() 공개 정적인 메소드

Translates a string-value of a certain family into the index that is used for this family in this class.
public static GetFamilyIndex ( string family ) : int
family string A string representing a certain font-family
리턴 int

GetStyleValue() 공개 정적인 메소드

Translates a string-value of a certain style into the index value is used for this style in this class.
public static GetStyleValue ( string style ) : int
style string a string
리턴 int

IsBold() 공개 메소드

checks if this font is Bold.
public IsBold ( ) : bool
리턴 bool

IsItalic() 공개 메소드

checks if this font is Bold.
public IsItalic ( ) : bool
리턴 bool

IsStandardFont() 공개 메소드

Checks if the properties of this font are undefined or null.

If so, the standard should be used.

public IsStandardFont ( ) : bool
리턴 bool

IsStrikethru() 공개 메소드

checks if the style of this font is STRIKETHRU.
public IsStrikethru ( ) : bool
리턴 bool

IsUnderlined() 공개 메소드

checks if this font is underlined.
public IsUnderlined ( ) : bool
리턴 bool

SetColor() 공개 메소드

Sets the color.
public SetColor ( int red, int green, int blue ) : void
red int the red-value of the new color
green int the green-value of the new color
blue int the blue-value of the new color
리턴 void

SetFamily() 공개 메소드

Sets the family using a String ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").
public SetFamily ( String family ) : void
family String A String representing a certain font-family.
리턴 void

SetStyle() 공개 메소드

Sets the style using a String containing one of more of the following values: normal, bold, italic, underline, strike.
public SetStyle ( String style ) : void
style String A String representing a certain style.
리턴 void

SetStyle() 공개 메소드

public SetStyle ( int style ) : void
style int
리턴 void