API Reference

Class

OdfStyle

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

An XML-backed common or automatic ODF style.

Inheritance

  • Object
  • OdfStyle

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Properties

public String Name { get; } #

Style name.

public OdfStyleFamily Family { get; } #

Style family.

public String ParentStyleName { get; set; } #

Optional parent style name.

public Boolean IsAutomatic { get; } #

True for an automatic style.

public String DataStyleName { get; set; } #

Referenced number, currency, percentage, date, or time data style.

public Nullable<Boolean> Bold { get; set; } #

True when bold text is explicitly enabled by this style.

public Nullable<Boolean> Italic { get; set; } #

True when italic text is explicitly enabled by this style.

public Nullable<Boolean> Underline { get; set; } #

True when text underline is explicitly enabled by this style.

public Nullable<OdfTextDecorationStyle> UnderlineStyle { get; set; } #

Explicit native ODF underline line style.

public Nullable<OdfTextDecorationType> UnderlineType { get; set; } #

Explicit native ODF underline line count.

public Nullable<Boolean> UsesNonSolidUnderlineStyle { get; } #

Whether this style explicitly uses an underline variant other than solid or none.

public Nullable<Boolean> StrikeThrough { get; set; } #

True when text strike-through is explicitly enabled by this style.

public Nullable<OdfTextDecorationStyle> LineThroughStyle { get; set; } #

Explicit native ODF line-through style.

public Nullable<OdfTextDecorationType> LineThroughType { get; set; } #

Explicit native ODF line-through count.

public Nullable<Boolean> UsesNonSolidLineThroughStyle { get; } #

Whether this style explicitly uses a line-through variant other than solid or none.

public Nullable<OdfLength> FontSize { get; set; } #

Explicit font size.

public String TextPositionValue { get; set; } #

Exact ODF style:text-position value, including authored percentages.

public Nullable<OdfTextPosition> TextPosition { get; set; } #

Common native ODF baseline placement.

public Nullable<OdfTextTransform> TextTransform { get; set; } #

Native ODF display-time case transformation.

public Nullable<Boolean> SmallCaps { get; set; } #

Native ODF small-cap display formatting.

public String FontFamily { get; set; } #

Explicit font family.

public Nullable<OdfColor> Color { get; set; } #

Explicit text color.

public Nullable<OdfColor> TextBackgroundColor { get; set; } #

Explicit text background color, commonly used for highlighting.

public Nullable<OdfColor> BackgroundColor { get; set; } #

Explicit cell or paragraph background color.

public String BreakBefore { get; set; } #

Explicit paragraph break-before value.

public String TextAlign { get; set; } #

Explicit horizontal paragraph alignment.

public String WritingMode { get; set; } #

Explicit ODF paragraph writing-mode token.

public Nullable<OdfLength> LineHeight { get; set; } #

Explicit paragraph line height, including absolute and percentage values.

public Nullable<OdfLength> MarginLeft { get; set; } #

Explicit paragraph start margin.

public Nullable<OdfLength> MarginRight { get; set; } #

Explicit paragraph end margin.

public Nullable<OdfLength> MarginTop { get; set; } #

Explicit paragraph top margin.

public Nullable<OdfLength> MarginBottom { get; set; } #

Explicit paragraph bottom margin.

public Nullable<OdfLength> TextIndent { get; set; } #

Explicit first-line paragraph indentation.