FormattedText
Genel Bakış
FormattedText NET için FOSS’de bir sınıf.
İmzalama ve düzeltme işlemlerinde kullanılan biçimlendirilmiş metni temsil eder.
Bu sınıf, .NET programlarında FormattedText nesnelerle çalışmak için 26 yöntem sağlar. Kullanılabilir yöntemler şunlardır: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle. Tüm kamu üyeleri, .NET paketi için Aspose.PDF FOSS’u yükledikten sonra herhangi bir NET uygulamasına erişilebilir. Özellikleri: BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded,Ve 3 tane daha.
Özellikler
| Adı: | Tip: | Access | Açıklama: |
|---|---|---|---|
Text | string | Oku . | İlk satır metin içeriği. |
FontSize | double | Okuma/Yazma | Yazı tipi noktalarda. |
FontName | string | Okuma/Yazma | Yazıtip adı (PDF taban yazıtipi adı). |
ForegroundColor | Color | Okuma/Yazma | Ön plan (metin) rengi. |
BackgroundColor | Color | Okuma/Yazma | Arka plan rengi. |
IsEmbedded | bool | Okuma/Yazma | Metnin gömülü olup olmadığı (standart olmayan yazı tipleri için). |
CustomFontFile | string? | Okuma/Yazma | Özel yazı tipi dosyası yolu ( TrueType yazıtipi gömülmesi için). |
TextWidth | float | Oku . | Metnin genişliğini, mevcut yazı tipi ve boyutunda noktalarla öne çıkarın. |
TextHeight | float | Oku . | Formatted metin bloğunun toplam yüksekliği (satır boylarının toplamı). |
Yöntemler
| Signature | Açıklama: |
|---|---|
FormattedText() | Boş metinle yeni bir FormattedText oluşturun. |
FormattedText(text: string) | Belirtilen metinle yeni bir FormattedText oluşturun. |
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color) | Metin ve ön plan/arkaplan renkleri ile bir FormattedText oluşturun. |
FormattedText(text: string, foregroundColor: FontColor) | Metin ve ön/arka FontColor ile bir FormattedText oluşturun. |
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor) | Metin ve ön/arka FontColor ile bir FormattedText oluşturun. |
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float) | FormattedText’ı, FontColor kullanarak tam biçimlendirme ile oluşturun. |
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | Ön plan ve arka plan ile FontColor kullanarak tam biçimlendirmeyle bir FormattedText oluşturun. |
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | FormattedText’ı, satır aralığı ile tam biçimlendirmeyle oluşturun. |
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | Ön/arka plan ve yazı tipi ayarları ile FormattedText oluşturun. |
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float) | FormattedText’i oluşturun. Ön/Arka planda System.Drawing.Color ve FontStyle. |
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | FormattedText ((text, textColor, backColore, texFont, wordEncoding, embedded, wordsSize, lineSpacing) çağrıları bu FormattedText örneğinde. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | FormattedText ((text, textColor, backColore, texFont, wordEncoding, embedded, wordsSize, lineSpacing) çağrıları bu FormattedText örneğinde. |
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | FormattedText ((text, textColor, backColore, texFont, wordEncoding, embedded, wordsSize, lineSpacing) çağrıları bu FormattedText örneğinde. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color) | System.Drawing.Color ön plan + ön/arka plan çift. |
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | System.Drawing.Color ön plan + FontStyle +EncodingType, çizgi aralık yok. |
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | System.Drawing.Color ön plan + FontStyle +EncodingType * lineSpacing. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float) | System.Drawing.Color ön plan / arka plan + FontStyle. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | System.Drawing.Color ön/arka + yazı tipi adı dize. |
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | Ön planda ve yazı tipi adı veya TrueType font dosyası ile bir FormattedText oluşturun. |
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | Ön planda ve yazı tipi adı veya TrueType font dosyası ile bir FormattedText oluşturun. |
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | FormattedText ile bir FontStyle (enum) ve System.Drawing.Color. oluşturun. |
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | Ön plan/arkaplan ve bir satır aralığı olan FormattedText oluşturun. |
AddNewLineText(newLineText: string) | Yeni bir satır ekle. |
AddNewLineText(newLineText: string, lineSpacing: float) | Özel satır aralığı olan yeni bir metin satırı ekle. |
IsCjk() | Metnin CJK karakterleri olup olmadığını kontrol edin. |
SetCjkFontStyle() | Yazı tipini CJK destekli bir yazı tipine (MS Gothic eşdeğeri) ayarlayın. |