Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeTextBlockBackgroundBounds

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Modifiers
sealed

Rectangle around a measured text block, usually used for text background rendering.

Inheritance

  • ValueType
  • OfficeTextBlockBackgroundBounds

Usage

Explore 1 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.

Constructors

public OfficeTextBlockBackgroundBounds(double left, double top, double width, double height) #

Creates text background bounds.

Parameters

left double required
top double required
width double required
height double required

Methods

public OfficePoint[] GetCorners() #

Unrotated rectangle corners in clockwise order.

Returns

OfficePoint[]
public OfficePoint[] GetRotatedCorners(double rotationDegrees, double centerX, double centerY) #

Rotates rectangle corners around a supplied center using clockwise degrees.

Parameters

rotationDegrees double required
centerX double required
centerY double required

Returns

OfficePoint[]

Properties

public double Left { get; } #

Left edge of the background rectangle.

public double Top { get; } #

Top edge of the background rectangle.

public double Width { get; } #

Background rectangle width.

public double Height { get; } #

Background rectangle height.