FormattedText

FormattedText

Descripción general

FormattedText es una clase en Aspose.PDF FOSS para .NET.

Representa texto formateado utilizado en operaciones de sello y reparación.

Esta clase proporciona 26 métodos para trabajar con objetos FormattedText en programas .NET.
Los métodos disponibles incluyen: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle.
Todos los miembros públicos son accesibles para cualquier aplicación .NET después de instalar el paquete Aspose.PDF FOSS for .NET.
Propiedades: BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded, y 3 más.

Propiedades

NombreTipoAccesoDescripción
TextstringReadEl contenido de texto de la primera línea.
FontSizedoubleRead/WriteTamaño de fuente en puntos.
FontNamestringRead/WriteNombre de fuente (nombre de fuente base de PDF).
ForegroundColorColorRead/WriteColor de primer plano (texto).
BackgroundColorColorRead/WriteColor de fondo.
IsEmbeddedboolRead/WriteIndica si el texto está incrustado (para fuentes no estándar).
CustomFontFilestring?Read/WriteRuta del archivo de fuente personalizada (para incrustación de fuentes TrueType).
TextWidthfloatReadAncho de la línea más larga con la fuente/tamaño configurados.
TextHeightfloatReadAltura total del bloque de texto formateado (suma de las alturas de línea).

Métodos

FirmaDescripción
FormattedText()Crear un nuevo FormattedText con texto vacío.
FormattedText(text: string)Crear un nuevo FormattedText con el texto especificado.
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color)Crear un FormattedText con texto y colores de primer plano/fondo.
FormattedText(text: string, foregroundColor: FontColor)Crear un FormattedText con texto y FontColor de primer plano/fondo.
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor)Crear un FormattedText con texto y FontColor de primer plano/fondo.
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float)Crear un FormattedText con formato completo usando FontColor.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Crear un FormattedText con formato completo usando FontColor con primer plano y fondo.
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Crear un FormattedText con formato completo usando FontColor, con interlineado.
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Crear un FormattedText con System.Drawing.Color de primer plano/fondo y configuraciones de fuente.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)Crear un FormattedText con System.Drawing.Color de primer plano/fondo y FontStyle.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Llama a FormattedText en esta instancia de FormattedText.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color)System.Drawing.Color de primer plano + par de primer plano/fondo.
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color de primer plano + FontStyle + EncodingType, sin interlineado.
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)System.Drawing.Color de primer plano + FontStyle + EncodingType + interlineado.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color de primer plano/fondo + FontStyle.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)System.Drawing.Color de primer plano/fondo + cadena de nombre de fuente.
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Crear un FormattedText con System.Drawing.Color de primer plano y un nombre de fuente o archivo de fuente TrueType.
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Crear un FormattedText con Aspose.Pdf.Color de primer plano y un nombre de fuente o archivo de fuente TrueType.
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Crear un FormattedText con FontStyle (enum) y System.Drawing.Color.
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Crear un FormattedText con Aspose.Pdf.Color de primer plano/fondo y un interlineado.
AddNewLineText(newLineText: string)Agregar una nueva línea de texto.
AddNewLineText(newLineText: string, lineSpacing: float)Agregar una nueva línea de texto con interlineado personalizado.
IsCjk()Verificar si el texto contiene caracteres CJK.
SetCjkFontStyle()Establecer la fuente a una fuente compatible con CJK (equivalente a MS Gothic).

Ver también

 Español