Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioTextStyle

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

Reusable text style for the full text block of a Visio shape.

Inheritance

  • object
  • VisioTextStyle

Usage

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

Accepted by parameters 5

Constructors

public VisioTextStyle() #

Methods

public VisioTextStyle Clone() #

Creates a detached copy of this text style.

Properties

public string? FontFamily { get; set; } #

Font family name, such as Aptos or Calibri.

public OfficeColor? Color { get; set; } #

Text color.

public double? Size { get; set; } #

Font size in points.

public bool? Bold { get; set; } #

Whether text is bold.

public bool? Italic { get; set; } #

Whether text is italic.

public bool? Underline { get; set; } #

Whether text is underlined. This compatibility property maps to a single underline.

public OfficeTextDecorationStyle? UnderlineStyle { get; set; } #

Native underline variant. Visio supports none, single, and double.

public bool? Strikethrough { get; set; } #

Whether text has strikethrough. This compatibility property maps to a single strike line.

public OfficeTextDecorationStyle? StrikethroughStyle { get; set; } #

Native strikethrough variant. Visio supports none, single, and double.

public bool? SmallCaps { get; set; } #

Whether Visio's native small-capital style bit is active.

public VisioTextCapitalization? Capitalization { get; set; } #

Native display-time capitalization mode.

public OfficeTextBaseline? Baseline { get; set; } #

Native baseline placement.

public OfficeAlignment? HorizontalAlignment { get; set; } #

Horizontal text alignment.

public VisioTextVerticalAlignment? VerticalAlignment { get; set; } #

Vertical text alignment.

public double? LeftMargin { get; set; } #

Left text margin in inches.

public double? RightMargin { get; set; } #

Right text margin in inches.

public double? TopMargin { get; set; } #

Top text margin in inches.

public double? BottomMargin { get; set; } #

Bottom text margin in inches.

public double? TextPinX { get; set; } #

Text block pin X relative to the shape origin, in inches.

public double? TextPinY { get; set; } #

Text block pin Y relative to the shape origin, in inches.

public double? TextWidth { get; set; } #

Text block width in inches.

public double? TextHeight { get; set; } #

Text block height in inches.

public double? TextLocPinX { get; set; } #

Text block local pin X relative to the text block origin, in inches.

public double? TextLocPinY { get; set; } #

Text block local pin Y relative to the text block origin, in inches.

public double? TextAngle { get; set; } #

Text block rotation angle in radians.

public OfficeColor? BackgroundColor { get; set; } #

Text block background color. A color with zero alpha explicitly disables the background.

public double? BackgroundTransparency { get; set; } #

Text block background transparency as a percentage from 0 (opaque) to 100 (transparent).