Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfCjkFontFamily

    Show / Hide Table of Contents

    Class PdfCjkFontFamily

    Specifies the type of CJK font.

    Inheritance
    System.Object
    PdfCjkFontFamily
    Namespace: Syncfusion.Pdf.Graphics
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfCjkFontFamily : Enum
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a page to the document.
    PdfPage page = document.Pages.Add();
    //Create PDF graphics for the page.
    PdfGraphics graphics = page.Graphics;
    //Set the standard font.
    PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20);
    //Draw the text.
    graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0));
    //Save the document.
    document.Save("Output.pdf");
    //Close the document.
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Add a page to the document.
    Dim page As PdfPage = document.Pages.Add()
    'Create PDF graphics for the page.
    Dim graphics As PdfGraphics = page.Graphics
    'Set the standard font.
    Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20)
    'Draw the text.
    graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0))
    'Save the document.
    document.Save("Output.pdf")
    'Close the document.
    document.Close(True)

    Fields

    HanyangSystemsGothicMedium

    Represents the Hanyang Systems Gothic Medium font.

    Declaration
    public const PdfCjkFontFamily HanyangSystemsGothicMedium
    Field Value
    Type Description
    PdfCjkFontFamily

    HanyangSystemsShinMyeongJoMedium

    Represents the Hanyang Systems shin myeong Jo Medium font.

    Declaration
    public const PdfCjkFontFamily HanyangSystemsShinMyeongJoMedium
    Field Value
    Type Description
    PdfCjkFontFamily

    HeiseiKakuGothicW5

    Represents the Heisei kaku GothicW5 font.

    Declaration
    public const PdfCjkFontFamily HeiseiKakuGothicW5
    Field Value
    Type Description
    PdfCjkFontFamily

    HeiseiMinchoW3

    Represents the Heisei MinchoW3 font.

    Declaration
    public const PdfCjkFontFamily HeiseiMinchoW3
    Field Value
    Type Description
    PdfCjkFontFamily

    MonotypeHeiMedium

    Represents the Monotype Hei Medium font.

    Declaration
    public const PdfCjkFontFamily MonotypeHeiMedium
    Field Value
    Type Description
    PdfCjkFontFamily

    MonotypeSungLight

    Represents the monotype sung Light font.

    Declaration
    public const PdfCjkFontFamily MonotypeSungLight
    Field Value
    Type Description
    PdfCjkFontFamily

    SinoTypeSongLight

    Represents the sinotype song light font.

    Declaration
    public const PdfCjkFontFamily SinoTypeSongLight
    Field Value
    Type Description
    PdfCjkFontFamily

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved