Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextRunFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of PdfTextRun, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • PdfTextRunFluent

Methods

public static PdfTextRun BackgroundColor(PdfTextRun pdfTextRun, OfficeColor color) #

Sets the background (highlight) colour of this run.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
color OfficeIMO.OfficeColor required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Baseline(PdfTextRun pdfTextRun, PdfTextBaseline baseline) #

Sets the baseline placement of this run.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
baseline OfficeIMO.Pdf.PdfTextBaseline required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Bold(PdfTextRun pdfTextRun, bool bold = true) #

Makes this run bold or regular weight.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
bold bool = true optional
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun CharacterSpacing(PdfTextRun pdfTextRun, OfficeLength spacing) #

Sets the additional advance after each glyph of this text run. Zero is normal spacing; negative values condense the glyph advances.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
spacing OfficeIMO.OfficeLength required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Color(PdfTextRun pdfTextRun, OfficeColor color) #

Sets the foreground colour of this run.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
color OfficeIMO.OfficeColor required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun FeatureSettings(PdfTextRun pdfTextRun, OfficeTextFeatureSettings featureSettings) #

Sets the OpenType feature selections of this run.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
featureSettings OfficeIMO.Drawing.OfficeTextFeatureSettings required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun FontFamily(PdfTextRun pdfTextRun, string fontFamily) #

Sets the registered embedded font family of this run. PdfTextRun.StandardFont remains its fallback.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
fontFamily string required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun FontSize(PdfTextRun pdfTextRun, OfficeLength fontSize) #

Sets the font size of this run.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
fontSize OfficeIMO.OfficeLength required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun HorizontalTextScaling(PdfTextRun pdfTextRun, double percentage) #

Sets the horizontal glyph width percentage of this text run. 100 is normal width.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
percentage double required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Italic(PdfTextRun pdfTextRun, bool italic = true) #

Makes this run italic or upright.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
italic bool = true optional
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun StandardFont(PdfTextRun pdfTextRun, PdfStandardFont standardFont) #

Sets the standard PDF font of this run.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
standardFont OfficeIMO.Pdf.PdfStandardFont required
The value.

Returns

PdfTextRun The same instance.
Strikethrough 2 overloads
public static PdfTextRun Strikethrough(PdfTextRun pdfTextRun, bool strikethrough = true) #

Adds a single strikethrough to this run, or removes its strikethrough.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
strikethrough bool = true optional
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Strikethrough(PdfTextRun pdfTextRun, OfficeTextDecorationStyle style) #

Sets the strikethrough pattern of this run. OfficeTextDecorationStyle.None removes it.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
style OfficeIMO.Drawing.OfficeTextDecorationStyle required
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Subscript(PdfTextRun pdfTextRun) #

Lowers this run to subscript.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.

Returns

PdfTextRun The same instance.
public static PdfTextRun Superscript(PdfTextRun pdfTextRun) #

Raises this run to superscript.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.

Returns

PdfTextRun The same instance.
Underline 2 overloads
public static PdfTextRun Underline(PdfTextRun pdfTextRun, bool underline = true) #

Adds a single underline to this run, or removes its underline.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
underline bool = true optional
The value.

Returns

PdfTextRun The same instance.
public static PdfTextRun Underline(PdfTextRun pdfTextRun, OfficeTextDecorationStyle style) #

Sets the underline pattern of this run. OfficeTextDecorationStyle.None removes it.

Parameters

pdfTextRun OfficeIMO.Pdf.PdfTextRun required
The instance.
style OfficeIMO.Drawing.OfficeTextDecorationStyle required
The value.

Returns

PdfTextRun The same instance.