Export (0) Print
Expand All

Style Members 

Represents a style description for a range.

The following tables list the members exposed by the Style type.

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

  Name Description
Delete Deletes the object.

Community Additions

© 2014 Microsoft