Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfCanvasTextBoxStyle

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 33d062b583cb 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() #
Returns: PdfCanvasTextBoxStyle

Creates a copy of this canvas text box style.

Properties

public PdfColor? 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 PdfColor? BorderColor { get; set; } #

Border color. Set to null for no border.

public Double 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 Double CornerRadius { get; set; } #

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

public Double PaddingX { get; set; } #

Horizontal padding inside the text box, in points.

public Double PaddingY { get; set; } #

Vertical padding inside the text box, in points.

public Double? PaddingLeft { get; set; } #

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

public Double? PaddingRight { get; set; } #

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

public Double? PaddingTop { get; set; } #

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

public Double? PaddingBottom { get; set; } #

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

public PdfColor? TextColor { get; set; } #

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

public PdfAlign Align { get; set; } #

Text alignment inside the text box.

public PdfVerticalAlign VerticalAlign { get; set; } #

Vertical alignment of wrapped text inside the text box.

public Double? FontSize { get; set; } #

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

public Double? 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.