# VisioTextStyle

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

Class 

`OfficeIMO.Visio`

**Namespace**

`OfficeIMO.Visio`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[VisioTextStyle.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L154)

**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.

### Returned or exposed by 10

- Property [VisioConnector.TextStyle](/api/visio/officeimo-visio-visioconnector/#property-textstyle)
- Property [VisioConnectorStyle.TextStyle](/api/visio/officeimo-visio-visioconnectorstyle/#property-textstyle)
- Property [VisioContainerInfo.TextStyle](/api/visio/officeimo-visio-visiocontainerinfo/#property-textstyle)
- Property [VisioContainerOptions.TextStyle](/api/visio/officeimo-visio-visiocontaineroptions/#property-textstyle)
- Property [VisioDataGraphicItem.LabelTextStyle](/api/visio/officeimo-visio-visiodatagraphicitem/#property-labeltextstyle)
- Property [VisioShape.TextStyle](/api/visio/officeimo-visio-visioshape/#property-textstyle)
- Property [VisioShapeStyle.TextStyle](/api/visio/officeimo-visio-visioshapestyle/#property-textstyle)
- Property [VisioStyleTheme.LegendText](/api/visio/officeimo-visio-visiostyletheme/#property-legendtext)
- Property [VisioStyleTheme.TitleText](/api/visio/officeimo-visio-visiostyletheme/#property-titletext)
- Method [VisioTextStyle.Clone](/api/visio/officeimo-visio-visiotextstyle/#method-clone)

### Accepted by parameters 5

- Extension method [VisioConnector.ApplyTextStyle](/api/visio/officeimo-visio-visioconnector/#extension-applytextstyle-officeimo-visio-visioconnector-officeimo-visio-visiotextstyle) parameter `style`
- Extension method [VisioConnectorSelection.ApplyTextStyle](/api/visio/officeimo-visio-visioconnectorselection/#extension-applytextstyle-officeimo-visio-visioconnectorselection-officeimo-visio-visiotextstyle) parameter `style`
- Extension method [VisioShape.ApplyTextStyle](/api/visio/officeimo-visio-visioshape/#extension-applytextstyle-officeimo-visio-visioshape-officeimo-visio-visiotextstyle) parameter `style`
- Extension method [VisioShapeSelection.ApplyTextStyle](/api/visio/officeimo-visio-visioshapeselection/#extension-applytextstyle-officeimo-visio-visioshapeselection-officeimo-visio-visiotextstyle) parameter `style`
- Method [VisioStyleExtensions.ApplyTextStyle](/api/visio/officeimo-visio-visiostyleextensions/#method-applytextstyle-officeimo-visio-visioshape-officeimo-visio-visiotextstyle) parameter `style`

Filter members 

Show inherited

## Constructors

`public VisioTextStyle()` [#](#constructor-ctor)

## Methods

`public VisioTextStyle Clone()` [#](#method-clone)

[VisioTextStyle.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L154)

Creates a detached copy of this text style.

Returns

`VisioTextStyle`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? FontFamily { get; set; }` [#](#property-fontfamily)

[VisioTextStyle.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L17)

Font family name, such as Aptos or Calibri.

`public OfficeColor? Color { get; set; }` [#](#property-color)

[VisioTextStyle.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L23)

Text color.

`public double? Size { get; set; }` [#](#property-size)

[VisioTextStyle.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L26)

Font size in points.

`public bool? Bold { get; set; }` [#](#property-bold)

[VisioTextStyle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L29)

Whether text is bold.

`public bool? Italic { get; set; }` [#](#property-italic)

[VisioTextStyle.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L32)

Whether text is italic.

`public bool? Underline { get; set; }` [#](#property-underline)

[VisioTextStyle.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L36)

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

`public OfficeTextDecorationStyle? UnderlineStyle { get; set; }` [#](#property-underlinestyle)

[VisioTextStyle.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L44)

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

`public bool? Strikethrough { get; set; }` [#](#property-strikethrough)

[VisioTextStyle.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L53)

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

`public OfficeTextDecorationStyle? StrikethroughStyle { get; set; }` [#](#property-strikethroughstyle)

[VisioTextStyle.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L61)

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

`public bool? SmallCaps { get; set; }` [#](#property-smallcaps)

[VisioTextStyle.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L69)

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

`public VisioTextCapitalization? Capitalization { get; set; }` [#](#property-capitalization)

[VisioTextStyle.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L73)

Native display-time capitalization mode.

`public OfficeTextBaseline? Baseline { get; set; }` [#](#property-baseline)

[VisioTextStyle.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L82)

Native baseline placement.

`public OfficeAlignment? HorizontalAlignment { get; set; }` [#](#property-horizontalalignment)

[VisioTextStyle.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L90)

Horizontal text alignment.

`public VisioTextVerticalAlignment? VerticalAlignment { get; set; }` [#](#property-verticalalignment)

[VisioTextStyle.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L93)

Vertical text alignment.

`public double? LeftMargin { get; set; }` [#](#property-leftmargin)

[VisioTextStyle.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L96)

Left text margin in inches.

`public double? RightMargin { get; set; }` [#](#property-rightmargin)

[VisioTextStyle.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L99)

Right text margin in inches.

`public double? TopMargin { get; set; }` [#](#property-topmargin)

[VisioTextStyle.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L102)

Top text margin in inches.

`public double? BottomMargin { get; set; }` [#](#property-bottommargin)

[VisioTextStyle.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L105)

Bottom text margin in inches.

`public double? TextPinX { get; set; }` [#](#property-textpinx)

[VisioTextStyle.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L108)

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

`public double? TextPinY { get; set; }` [#](#property-textpiny)

[VisioTextStyle.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L111)

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

`public double? TextWidth { get; set; }` [#](#property-textwidth)

[VisioTextStyle.cs:114](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L114)

Text block width in inches.

`public double? TextHeight { get; set; }` [#](#property-textheight)

[VisioTextStyle.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L117)

Text block height in inches.

`public double? TextLocPinX { get; set; }` [#](#property-textlocpinx)

[VisioTextStyle.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L120)

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

`public double? TextLocPinY { get; set; }` [#](#property-textlocpiny)

[VisioTextStyle.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L123)

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

`public double? TextAngle { get; set; }` [#](#property-textangle)

[VisioTextStyle.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L126)

Text block rotation angle in radians.

`public OfficeColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[VisioTextStyle.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L133)

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

`public double? BackgroundTransparency { get; set; }` [#](#property-backgroundtransparency)

[VisioTextStyle.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Styles/VisioTextStyle.cs#L139)

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

<!-- PowerForge markdown artifact sha256:237636C5A6DD9F216A271BE362AA7EE5A2BA0A844483261929076A50AE0D1AF5 -->
