Class FontUnit

Class FontUnit

Nazwa przestrzeń: Aspose.BarCode.Generation Zgromadzenie: Aspose.BarCode.dll (25.4.0)

Definuje określony format dla tekstu, w tym twarz czcionki, rozmiar i atrybuty stylugdzie wielkość w jednostce wartości nieruchomości.

public sealed class FontUnit

Inheritance

object FontUnit

Dziedziczeni członkowie

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Ten próbka pokazuje, jak utworzyć i zaoszczędzić obraz BarCode.

using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128))
  {
      generator.CodeTextStyle.Font.Style = FontStyle.Italic;
      generator.CodeTextStyle.Font.Size.Point = 18;
      generator.Save("test.png");
  }

Properties

FamilyName

Uzyskaj lub ustaw nazwę twarzy tego czcionki.

[XmlSerialization(Type = XmlSerializationType.Element)]
public string FamilyName { get; set; }

Wartość nieruchomości

string

Size

Otrzymuje lub ustawia rozmiar tego FontUnit w wartości jednostkowej.

[XmlSerialization(Type = XmlSerializationType.Element, Name = "Size")]
public Unit Size { get; }

Wartość nieruchomości

Unit

Exceptions

ArgumentException

Wartość parametrów jest mniejsza lub równa 0.

Style

Otrzymuje lub ustawia informacje o stylu dla tego FontUnit.

[XmlSerialization(Type = XmlSerializationType.Element)]
public FontStyle Style { get; set; }

Wartość nieruchomości

FontStyle

 Polski