[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyle

Interface IStyle

Namespace
GrapeCity.Documents.Excel
Assembly
GcDocs.Excel.dll

Represents a style description for a range.

public interface IStyle

Properties

AddIndent

Gets or sets whether text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.

bool AddIndent { get; set; }

Property Value

bool

Borders

Returns the IBorders collection that represents the borders of a style.

IBorders Borders { get; }

Property Value

IBorders

BuiltIn

Gets whether the style is a built-in style.

bool BuiltIn { get; }

Property Value

bool

Font

Returns the IFont object that represents the font of the specified object.

IFont Font { get; }

Property Value

IFont

FormulaHidden

Gets or sets whether the formula is hidden when the worksheet is protected.

bool FormulaHidden { get; set; }

Property Value

bool

HorizontalAlignment

Gets or sets the horizontal alignment for the specified object.

HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

IncludeAlignment

Gets or sets whether style includes the IStyle.AddIndent, IStyle.HorizontalAlignment, IStyle.VerticalAlignment, IStyle.WrapText, and IStyle.Orientation properties.

bool IncludeAlignment { get; set; }

Property Value

bool

IncludeBorder

Gets or sets whether the style includes the IBorder.Color, IBorder.ColorIndex,IBorder.LineStyle, and IBorder.Weight border properties.

bool IncludeBorder { get; set; }

Property Value

bool

IncludeFont

Gets or sets whether the style includes the IFont.Bold, IFont.Color,IFont.ColorIndex, IFont.FontStyle,IFont.Italic, IFont.Name,IFont.OutlineFont, IFont.Shadow,IFont.Size, IFont.Strikethrough,IFont.Subscript, IFont.Superscript, and IFont.Underline font properties.

bool IncludeFont { get; set; }

Property Value

bool

IncludeNumber

Gets or sets whether the style includes the IStyle.NumberFormat property.

bool IncludeNumber { get; set; }

Property Value

bool

IncludePatterns

Gets or sets whether the style includes the IInterior.Color, IInterior.InvertIfNegative, IInterior.Pattern, IInterior.PatternColor, and IInterior.PatternColorIndex interior properties.

bool IncludePatterns { get; set; }

Property Value

bool

IncludeProtection

Gets or sets whether the style includes the IStyle.FormulaHidden and IStyle.Locked properties.

bool IncludeProtection { get; set; }

Property Value

bool

IndentLevel

Gets or sets the indent level for the style.

int IndentLevel { get; set; }

Property Value

int

Interior

Returns an IInterior object that represents the interior of the specified object.

IInterior Interior { get; }

Property Value

IInterior

Locked

Gets or sets whether the object is locked; False if the object can be modified when the sheet is protected.

bool Locked { get; set; }

Property Value

bool

Name

Returns the name of the object.

string Name { get; }

Property Value

string

NumberFormat

Gets or sets the format code for the object as a string in the language of the user.

string NumberFormat { get; set; }

Property Value

string

Orientation

Gets or sets the text orientation. Can be an integer value from –90 to 90 degrees.

int Orientation { get; set; }

Property Value

int

ShrinkToFit

Gets or sets whether the text automatically shrinks to fit in the available column width.

bool ShrinkToFit { get; set; }

Property Value

bool

VerticalAlignment

Gets or sets the vertical alignment of the specified object.

VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

WrapText

Gets or sets whether to wrap the text.

bool WrapText { get; set; }

Property Value

bool

Methods

Delete()

Deletes the object.

bool Delete()

Returns

bool

Returns whether successfully deleted.

FromJson(string)

Generates the named style from the json string.

void FromJson(string json)

Parameters

json string

The json string.

ToJson()

Generates a json string from the named style.

string ToJson()

Returns

string