Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficeTextBlockBackgroundBounds

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

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

Inheritance

  • ValueType
  • OfficeTextBlockBackgroundBounds

Usage

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 System.Double requiredposition: 0
top System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3

Methods

public OfficePoint[] GetCorners() #
Returns: OfficePoint[]

Unrotated rectangle corners in clockwise order.

public OfficePoint[] GetRotatedCorners(Double rotationDegrees, Double centerX, Double centerY) #
Returns: OfficePoint[]

Rotates rectangle corners around a supplied center using clockwise degrees.

Parameters

rotationDegrees System.Double requiredposition: 0
centerX System.Double requiredposition: 1
centerY System.Double requiredposition: 2

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.