PDFsharp-net6

XGraphicsExtensions

Namespace: PdfSharp.UniversalAccessibility.Drawing

PDF/UA extensions.

public static class XGraphicsExtensions

Inheritance ObjectXGraphicsExtensions

Methods

DrawString(XGraphics, String, XFont, XBrush, Double, Double, XStringFormat, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, double x, double y, XStringFormat format, PdfBlockLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

x Double

y Double

format XStringFormat

tag PdfBlockLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, Double, Double, XStringFormat, PdfInlineLevelElementTag)

Extension for DrawString with a PDF Inline Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, double x, double y, XStringFormat format, PdfInlineLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

x Double

y Double

format XStringFormat

tag PdfInlineLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, XPoint, XStringFormat, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, XPoint point, XStringFormat format, PdfBlockLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

point XPoint

format XStringFormat

tag PdfBlockLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, XPoint, XStringFormat, PdfInlineLevelElementTag)

Extension for DrawString with a PDF Inline Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, XPoint point, XStringFormat format, PdfInlineLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

point XPoint

format XStringFormat

tag PdfInlineLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, Double, Double, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, double x, double y, PdfBlockLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

x Double

y Double

tag PdfBlockLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, Double, Double, PdfInlineLevelElementTag)

Extension for DrawString with a PDF Inline Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, double x, double y, PdfInlineLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

x Double

y Double

tag PdfInlineLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, XPoint, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, XPoint point, PdfBlockLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

point XPoint

tag PdfBlockLevelElementTag

DrawString(XGraphics, String, XFont, XBrush, XPoint, PdfInlineLevelElementTag)

Extension for DrawString with a PDF Inline Level Element tag.

public static void DrawString(XGraphics gfx, string text, XFont font, XBrush brush, XPoint point, PdfInlineLevelElementTag tag)

Parameters

gfx XGraphics

text String

font XFont

brush XBrush

point XPoint

tag PdfInlineLevelElementTag

DrawAbbreviation(XGraphics, String, String, XFont, XBrush, Double, Double, XStringFormat, PdfInlineLevelElementTag)

Extension for DrawAbbreviation with a PDF Inline Level Element tag.

public static void DrawAbbreviation(XGraphics gfx, string abbreviation, string expandedText, XFont font, XBrush brush, double x, double y, XStringFormat format, PdfInlineLevelElementTag tag)

Parameters

gfx XGraphics

abbreviation String

expandedText String

font XFont

brush XBrush

x Double

y Double

format XStringFormat

tag PdfInlineLevelElementTag

DrawAbbreviation(XGraphics, String, String, XFont, XBrush, Double, Double, XStringFormat)

Extension for DrawAbbreviation with a Span PDF Inline Level Element tag.

public static void DrawAbbreviation(XGraphics gfx, string abbreviation, string expandedText, XFont font, XBrush brush, double x, double y, XStringFormat format)

Parameters

gfx XGraphics

abbreviation String

expandedText String

font XFont

brush XBrush

x Double

y Double

format XStringFormat

DrawAbbreviation(XGraphics, String, String, XFont, XBrush, XPoint, XStringFormat)

Extension for DrawAbbreviation with a Span PDF Inline Level Element tag.

public static void DrawAbbreviation(XGraphics gfx, string abbreviation, string expandedText, XFont font, XBrush brush, XPoint point, XStringFormat format)

Parameters

gfx XGraphics

abbreviation String

expandedText String

font XFont

brush XBrush

point XPoint

format XStringFormat

DrawAbbreviation(XGraphics, String, String, XFont, XBrush, Double, Double)

Extension for DrawAbbreviation with a Span PDF Inline Level Element tag.

public static void DrawAbbreviation(XGraphics gfx, string abbreviation, string expandedText, XFont font, XBrush brush, double x, double y)

Parameters

gfx XGraphics

abbreviation String

expandedText String

font XFont

brush XBrush

x Double

y Double

DrawAbbreviation(XGraphics, String, String, XFont, XBrush, XPoint)

Extension for DrawAbbreviation with a Span PDF Inline Level Element tag.

public static void DrawAbbreviation(XGraphics gfx, string abbreviation, string expandedText, XFont font, XBrush brush, XPoint point)

Parameters

gfx XGraphics

abbreviation String

expandedText String

font XFont

brush XBrush

point XPoint

DrawImage(XGraphics, XImage, Double, Double, String, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, double x, double y, string altText, XRect boundingBox)

Parameters

gfx XGraphics

image XImage

x Double

y Double

altText String

boundingBox XRect

DrawImage(XGraphics, XImage, Double, Double, Double, Double, String, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, double x, double y, double width, double height, string altText, XRect boundingBox)

Parameters

gfx XGraphics

image XImage

x Double

y Double

width Double

height Double

altText String

boundingBox XRect

DrawImage(XGraphics, XImage, XPoint, String, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, XPoint point, string altText, XRect boundingBox)

Parameters

gfx XGraphics

image XImage

point XPoint

altText String

boundingBox XRect

DrawImage(XGraphics, XImage, XPoint, Double, Double, String, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, XPoint point, double width, double height, string altText, XRect boundingBox)

Parameters

gfx XGraphics

image XImage

point XPoint

width Double

height Double

altText String

boundingBox XRect

DrawImage(XGraphics, XImage, XRect, String, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, XRect rect, string altText, XRect boundingBox)

Parameters

gfx XGraphics

image XImage

rect XRect

altText String

boundingBox XRect

DrawImage(XGraphics, XImage, Double, Double, String)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, double x, double y, string altText)

Parameters

gfx XGraphics

image XImage

x Double

y Double

altText String

DrawImage(XGraphics, XImage, Double, Double, Double, Double, String)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, double x, double y, double width, double height, string altText)

Parameters

gfx XGraphics

image XImage

x Double

y Double

width Double

height Double

altText String

DrawImage(XGraphics, XImage, XPoint, String)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, XPoint point, string altText)

Parameters

gfx XGraphics

image XImage

point XPoint

altText String

DrawImage(XGraphics, XImage, XPoint, Double, Double, String)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, XPoint point, double width, double height, string altText)

Parameters

gfx XGraphics

image XImage

point XPoint

width Double

height Double

altText String

DrawImage(XGraphics, XImage, XRect, String)

Extension for DrawImage with an alternative text.

public static void DrawImage(XGraphics gfx, XImage image, XRect rect, string altText)

Parameters

gfx XGraphics

image XImage

rect XRect

altText String

DrawLink(XGraphics, String, XFont, XBrush, Double, Double, XStringFormat, PdfLinkAnnotation, String)

Extension for DrawLink with an alternative text.

public static void DrawLink(XGraphics gfx, string s, XFont font, XBrush brush, double x, double y, XStringFormat format, PdfLinkAnnotation linkAnnotation, string altText)

Parameters

gfx XGraphics

s String

font XFont

brush XBrush

x Double

y Double

format XStringFormat

linkAnnotation PdfLinkAnnotation

altText String

DrawLink(XGraphics, String, XFont, XBrush, XPoint, XStringFormat, PdfLinkAnnotation, String)

Extension for DrawLink with an alternative text.

public static void DrawLink(XGraphics gfx, string s, XFont font, XBrush brush, XPoint point, XStringFormat format, PdfLinkAnnotation linkAnnotation, string altText)

Parameters

gfx XGraphics

s String

font XFont

brush XBrush

point XPoint

format XStringFormat

linkAnnotation PdfLinkAnnotation

altText String

DrawLink(XGraphics, String, XFont, XBrush, Double, Double, PdfLinkAnnotation, String)

Extension for DrawLink with an alternative text.

public static void DrawLink(XGraphics gfx, string s, XFont font, XBrush brush, double x, double y, PdfLinkAnnotation linkAnnotation, string altText)

Parameters

gfx XGraphics

s String

font XFont

brush XBrush

x Double

y Double

linkAnnotation PdfLinkAnnotation

altText String

DrawLink(XGraphics, String, XFont, XBrush, XPoint, PdfLinkAnnotation, String)

Extension for DrawLink with an alternative text.

public static void DrawLink(XGraphics gfx, string s, XFont font, XBrush brush, XPoint point, PdfLinkAnnotation linkAnnotation, string altText)

Parameters

gfx XGraphics

s String

font XFont

brush XBrush

point XPoint

linkAnnotation PdfLinkAnnotation

altText String

DrawListItem(XGraphics, String, String, XFont, XBrush, Double, Double, Double, XStringFormat)

Extension draws a list item with PDF Block Level Element tags.

public static void DrawListItem(XGraphics gfx, string label, string text, XFont font, XBrush brush, double x, double y, double labelWidth, XStringFormat format)

Parameters

gfx XGraphics

label String

text String

font XFont

brush XBrush

x Double

y Double

labelWidth Double

format XStringFormat

DrawListItem(XGraphics, String, String, XFont, XBrush, XPoint, Double, XStringFormat)

Extension draws a list item with PDF Block Level Element tags.

public static void DrawListItem(XGraphics gfx, string label, string text, XFont font, XBrush brush, XPoint point, double labelWidth, XStringFormat format)

Parameters

gfx XGraphics

label String

text String

font XFont

brush XBrush

point XPoint

labelWidth Double

format XStringFormat

DrawListItem(XGraphics, String, String, XFont, XBrush, Double, Double, Double)

Extension draws a list item with PDF Block Level Element tags.

public static void DrawListItem(XGraphics gfx, string label, string text, XFont font, XBrush brush, double x, double y, double labelWidth)

Parameters

gfx XGraphics

label String

text String

font XFont

brush XBrush

x Double

y Double

labelWidth Double

DrawListItem(XGraphics, String, String, XFont, XBrush, XPoint, Double)

Extension draws a list item with PDF Block Level Element tags.

public static void DrawListItem(XGraphics gfx, string label, string text, XFont font, XBrush brush, XPoint point, double labelWidth)

Parameters

gfx XGraphics

label String

text String

font XFont

brush XBrush

point XPoint

labelWidth Double