# LegacyWordStyleContent

Describes one recovered source paragraph-style definition.

Class 

`OfficeIMO.Word.Legacy`

**Namespace**

`OfficeIMO.Word.Legacy`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[LegacyWordContracts.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L111)

**Modifiers**

sealed

Describes one recovered source paragraph-style definition.

## Inheritance

- object
- LegacyWordStyleContent

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

### Returned or exposed by 1

- Property [LegacyWordContent.Styles](/api/word/officeimo-word-legacy-legacywordcontent/#property-styles)

Filter members 

Show inherited

## 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 Name { get; }` [#](#property-name)

[LegacyWordContracts.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L111)

Gets the recovered source style name.

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

[LegacyWordContracts.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L113)

Gets whether bold is part of the style.

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

[LegacyWordContracts.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L115)

Gets whether italic is part of the style.

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

[LegacyWordContracts.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L117)

Gets the recovered underline style.

`public OfficeLength? FontSize { get; }` [#](#property-fontsize)

[LegacyWordContracts.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L119)

Gets the recovered font size.

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

[LegacyWordContracts.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L121)

Gets the recovered font family.

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

[LegacyWordContracts.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L123)

Gets the recovered RGB color.

`public WordParagraphAlignment? Alignment { get; }` [#](#property-alignment)

[LegacyWordContracts.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L125)

Gets recovered paragraph alignment.

`public OfficeLength? LineSpacing { get; }` [#](#property-linespacing)

[LegacyWordContracts.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L127)

Gets recovered physical line spacing.

`public OfficeLength? SpacingBefore { get; }` [#](#property-spacingbefore)

[LegacyWordContracts.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L129)

Gets recovered spacing before the paragraph.

`public OfficeLength? SpacingAfter { get; }` [#](#property-spacingafter)

[LegacyWordContracts.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L131)

Gets recovered spacing after the paragraph.

`public bool PageBreakBefore { get; }` [#](#property-pagebreakbefore)

[LegacyWordContracts.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L133)

Gets whether the style requests a page break before the paragraph.

`public bool KeepWithNext { get; }` [#](#property-keepwithnext)

[LegacyWordContracts.cs:135](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L135)

Gets whether the style keeps a paragraph with the next paragraph.

`public bool KeepLinesTogether { get; }` [#](#property-keeplinestogether)

[LegacyWordContracts.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L137)

Gets whether the style keeps paragraph lines together.

<!-- PowerForge markdown artifact sha256:3FA38062657E865B750CCF505C75980A81CF2741BF39B8514AB792B8DEE8D93E -->
