Share via


CellFormat Members

Include Protected Members
Include Inherited Members

Represents the search criteria for the cell format.

The CellFormat type exposes the following members.

Properties

  Name Description
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 Allows the user to set or return the search criteria based on the cell's border format.
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, allowing the user to set or return the search criteria based on the cell's font format.
Public property FormulaHidden True if the formula will be hidden when the worksheet is protected. Returns Null if the specified range contains some cells with FormulaHidden equal to True and some cells with FormulaHidden equal to False.
Public property HorizontalAlignment Returns or sets the horizontal alignment for the specified object.
Public property IndentLevel Returns or sets the indent level for the cell or range. Can be an integer from 0 to 15.
Public property Interior Returns an Interior object allowing the user to set or return the search criteria based on the cell's interior format.
Public property Locked True if the object is locked; False if the object can be modified when the sheet is protected. Returns Null if the specified range contains both locked and unlocked cells.
Public property MergeCells True if the range or style contains merged cells.
Public property NumberFormat Returns or sets the format code for the object. Returns Null if all cells in the specified range don't have the same number format.
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.
Public property Parent Returns the parent object for the specified object.
Public property ShrinkToFit True if text automatically shrinks to fit in the available column width. Returns Null if this property isn’t set to the same value for all cells in the specified range.
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. Returns Null if the specified range contains some cells that wrap text and other cells that don’t.

Top

Methods

  Name Description
Public method Clear Clears the criteria set in the FindFormat and ReplaceFormat properties.

Top

See Also

Reference

CellFormat Interface

Microsoft.Office.Interop.Excel Namespace