Share via


Style Members

Include Protected Members
Include Inherited Members

Represents a style description for a range.

The Style type exposes the following members.

Properties

  Name Description
Public property _Default Reserved for internal use.
Public property AddIndent True if text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property Borders Returns a Borders collection that represents the borders of a style.
Public property BuiltIn True if the style is a built-in style.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property Font Returns a Font object that represents the font of the specified object.
Public property FormulaHidden True if the formula will be hidden when the worksheet is protected.
Public property HorizontalAlignment Returns or sets the horizontal alignment for the specified object.
Public property IncludeAlignment True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, and Orientation properties.
Public property IncludeBorder True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties.
Public property IncludeFont True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and Underline font properties.
Public property IncludeNumber True if the style includes the NumberFormat property.
Public property IncludePatterns True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties.
Public property IncludeProtection True if the style includes the FormulaHidden and Locked properties.
Public property IndentLevel Returns or sets the indent level for the style.
Public property Interior Returns an Interior object that represents the interior of the specified object.
Public property Locked True if the object is locked; False if the object can be modified when the sheet is protected.
Public property MergeCells True if the style contains merged cells.
Public property Name Returns the name of the object.
Public property NameLocal Returns the name of the object in the language of the user.
Public property NumberFormat Returns or sets the format code for the object.
Public property NumberFormatLocal Returns or sets the format code for the object as a string in the language of the user.
Public property Orientation The text orientation. Can be an integer value from –90 to 90 degrees or one of the XlOrientation constants.
Public property Parent Returns the parent object for the specified object.
Public property ReadingOrder Returns or sets the reading order for the specified object.
Public property ShrinkToFit True if text automatically shrinks to fit in the available column width.
Public property Value The name of the specified style.
Public property VerticalAlignment Returns or sets the vertical alignment of the specified object.
Public property WrapText True if Microsoft Excel wraps the text in the object.

Top

Methods

  Name Description
Public method Delete Deletes the object.

Top

See Also

Reference

Style Interface

Microsoft.Office.Interop.Excel Namespace