Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficeTextPadding

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base ValueType
Modifiers sealed

Text insets applied inside an Office drawing text frame before layout.

Inheritance

  • ValueType
  • OfficeTextPadding

Usage

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

Accepted by parameters

Constructors

public OfficeTextPadding(Double left, Double top, Double right, Double bottom) #

Creates text-frame padding in drawing units.

Parameters

left System.Double requiredposition: 0
top System.Double requiredposition: 1
right System.Double requiredposition: 2
bottom System.Double requiredposition: 3

Methods

public OfficeTextPadding Scale(Double scale) #
Returns: OfficeTextPadding

Returns the same padding scaled by a rendering factor.

Parameters

scale System.Double requiredposition: 0

Properties

public static OfficeTextPadding Empty { get; } #

No text padding.

public Double Left { get; } #

Left inset.

public Double Top { get; } #

Top inset.

public Double Right { get; } #

Right inset.

public Double Bottom { get; } #

Bottom inset.

public Double Horizontal { get; } #

Total horizontal inset.

public Double Vertical { get; } #

Total vertical inset.

public Boolean IsEmpty { get; } #

Whether all insets are zero.