Table of Contents

Class XGraphicsExtensions

Namespace
PdfSharp.UniversalAccessibility.Drawing
Assembly
PdfSharp.dll

PDF/UA extensions.

public static class XGraphicsExtensions
Inheritance
XGraphicsExtensions
Inherited Members

Methods

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

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

public static void DrawAbbreviation(this 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

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

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

public static void DrawAbbreviation(this 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(this 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, double, double, XStringFormat)

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

public static void DrawAbbreviation(this 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, double, double, XStringFormat, PdfInlineLevelElementTag)

Extension for DrawAbbreviation with a PDF Inline Level Element tag.

public static void DrawAbbreviation(this 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

DrawImage(XGraphics, XImage, XPoint, double, double, string)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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, XPoint, double, double, string, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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, XPoint, string)

Extension for DrawImage with an alternative text.

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

Parameters

gfx XGraphics
image XImage
point XPoint
altText string

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

Extension for DrawImage with an alternative text.

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

Parameters

gfx XGraphics
image XImage
point XPoint
altText string
boundingBox XRect

DrawImage(XGraphics, XImage, XRect, string)

Extension for DrawImage with an alternative text.

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

Parameters

gfx XGraphics
image XImage
rect XRect
altText string

DrawImage(XGraphics, XImage, XRect, string, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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, double, double, string)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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, double, double, double, double, string, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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, double, double, string)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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, string, XRect)

Extension for DrawImage with an alternative text.

public static void DrawImage(this 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

Extension for DrawLink with an alternative text.

public static void DrawLink(this 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

Extension for DrawLink with an alternative text.

public static void DrawLink(this 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

Extension for DrawLink with an alternative text.

public static void DrawLink(this 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

Extension for DrawLink with an alternative text.

public static void DrawLink(this 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

DrawListItem(XGraphics, string, string, XFont, XBrush, XPoint, double)

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

public static void DrawListItem(this 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

DrawListItem(XGraphics, string, string, XFont, XBrush, XPoint, double, XStringFormat)

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

public static void DrawListItem(this 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(this 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, double, double, double, XStringFormat)

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

public static void DrawListItem(this 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

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

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(this 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(this 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, XPoint, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(this 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(this 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

DrawString(XGraphics, string, XFont, XBrush, double, double, XStringFormat, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(this 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(this 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, double, double, PdfBlockLevelElementTag)

Extension for DrawString with a PDF Block Level Element tag.

public static void DrawString(this 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(this 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