Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfCanvasTextBoxStyle

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
9931e96ab849 with working tree changes
Modifiers
sealed

Reusable visual and text defaults for fixed-position canvas text boxes.

Inheritance

  • object
  • PdfCanvasTextBoxStyle

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public PdfCanvasTextBoxStyle() #

Methods

public PdfCanvasTextBoxStyle Clone() #

Creates a copy of this canvas text box style.

Properties

public OfficeColor? Background { get; set; } #

Background fill color. Set to null for a transparent text box.

public double? BackgroundOpacity { get; set; } #

Optional background fill opacity from 0 (transparent) to 1 (opaque).

public OfficeColor? BorderColor { get; set; } #

Border color. Set to null for no border.

public OfficeLength BorderWidth { get; set; } #

Border stroke width in points.

public OfficeStrokeDashStyle BorderDashStyle { get; set; } #

Border dash pattern.

public OfficeStrokeLineCap? BorderLineCap { get; set; } #

Optional border line cap.

public OfficeStrokeLineJoin? BorderLineJoin { get; set; } #

Optional border line join.

public OfficeLength CornerRadius { get; set; } #

Corner radius for rounded text boxes. Zero renders a regular rectangle.

public OfficeLength PaddingX { get; set; } #

Horizontal padding inside the text box, in points.

public OfficeLength PaddingY { get; set; } #

Vertical padding inside the text box, in points.

public OfficeLength? PaddingLeft { get; set; } #

Optional left padding override, in points. When null PdfCanvasTextBoxStyle.PaddingX is used.

public OfficeLength? PaddingRight { get; set; } #

Optional right padding override, in points. When null PdfCanvasTextBoxStyle.PaddingX is used.

public OfficeLength? PaddingTop { get; set; } #

Optional top padding override, in points. When null PdfCanvasTextBoxStyle.PaddingY is used.

public OfficeLength? PaddingBottom { get; set; } #

Optional bottom padding override, in points. When null PdfCanvasTextBoxStyle.PaddingY is used.

public OfficeColor? TextColor { get; set; } #

Default foreground color for text runs that do not specify a color.

public OfficeAlignment Align { get; set; } #

Text alignment inside the text box.

public PdfVerticalAlign VerticalAlign { get; set; } #

Vertical alignment of wrapped text inside the text box.

public OfficeLength? FontSize { get; set; } #

Default font size for text runs that do not specify a font size.

public OfficeLength? LineHeight { get; set; } #

Default line height for wrapped text. When null, the font size is multiplied by 1.2.

public PdfStandardFont? Font { get; set; } #

Default standard PDF font for text runs that do not specify a font.