[]
Represents the set of cell-level style settings for objects.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class StyleInfo : ICloneable, ISerializable, ICanSerializeXml, ISerializeSupport2, ISerializeSupport, IComparable, IComparable<StyleInfo>
<TypeConverter(GetType(ExpandableObjectConverter))>
Public Class StyleInfo
Implements ICloneable, ISerializable, ICanSerializeXml, ISerializeSupport2, ISerializeSupport, IComparable, IComparable(Of StyleInfo)
| Name | Description |
|---|---|
| StyleInfo() | Creates a set of cell-level style settings (StyleInfo object). |
| StyleInfo(StyleInfo) | Creates a set of cell-level style settings (StyleInfo object) equivalent to the specified set of style settings. |
| StyleInfo(SerializationInfo, StreamingContext) | Creates a set of cell-level style settings (StyleInfo object) from serialization (SerializationInfo object). |
| StyleInfo(string) | Creates a set of cell-level style settings (StyleInfo object) with the specified parent style. |
| StyleInfo(string, StyleInfo) | Creates a set of cell-level style settings (StyleInfo object) with the specified parent style and specified set of style settings. |
| Name | Description |
|---|---|
| BackColor | Gets or sets the style of the cell background color. |
| Background | Gets or sets the style for the cell background. |
| Border | Gets or sets the style of the cell border. |
| CanFocus | Gets or sets whether the style marks cells as CanFocus. |
| CanSerializeXml | Gets whether the object in its entirety can be rendered with XML without losing any information. |
| CellType | Gets or sets the type of cell for the style. |
| Editor | Gets or sets the editor of the cell for the style. |
| EncodeValue | Gets or sets whether the renderer encodes the values from the data model and the user's input using the HtmlEncode method. |
| Font | Gets or sets the style of the cell font settings. |
| ForeColor | Gets or sets the text color of the cell for the style. |
| Formatter | Gets or sets the formatter to use. |
| HorizontalAlign | Gets or sets the horizontal alignment of the cell for the style. |
| ImeMode | Gets or sets the state of an Input Method Editor (IME) of the cell for the style. |
| IsEmpty | Gets whether there are no style settings set. |
| Locked | Gets or sets whether the style marks cells as locked. |
| Margin | Gets or sets the settings of the cell margins that define the space between the cell border and the cell contents for the four sides of the cell. |
| Parent | Gets or sets the name of the parent NamedStyle object for the style. |
| Renderer | Gets or sets the renderer of the cell for the style. |
| TabStop | Gets or sets whether the style marks cells as TabStop. |
| VerticalAlign | Gets or sets the vertical alignment of the cell for the style. |
| Name | Description |
|---|---|
| Clone() | Creates a new object that is a copy of the current instance (with the same style settings). |
| CompareTo(StyleInfo) | Compares the current object with another object of the same type. |
| Compose(StyleInfo) | Composes style settings using the current style settings and those of a specified object. |
| Compose(StyleInfo, bool) | Composes style settings using the current style settings and those of a specified object with an option to overwrite the current style settings. |
| CopyFrom(object) | Copies the specified style settings of the specified object to the current object. |
| Deserialize(XmlNodeReader) | Loads the object from XML. |
| Equals(object) | Determines whether the style settings of this object are equivalent to the object specified. |
| GetAppearance(Appearance) | Gets the appearance settings for the StyleInfo object. |
| GetAppearance(Appearance, bool) | Gets the appearance settings for the StyleInfo object, with the option to specify whether all settings are copied into the specified Appearance object. |
| GetHashCode() | Returns the hash code of this object. |
| GetObjectData(SerializationInfo, StreamingContext) | Returns information about the style settings. |
| IsPropertySet(SheetStyleProperty) | Gets whether the specified style property is set. |
| Merge(object) | Merges the style settings with the current object. |
| Merge(object, bool) | Merges style settings with the current object and has the option to force style settings from the merge object to overwrite settings in the current object. |
| Merge(object, bool, object) | Merges style settings with the current object and has the option to force style settings from the merge object to overwrite settings in the current object. |
| Reset() | Resets all the property settings for the style to their default values. |
| Reset(SheetStyleProperty) | Resets a specified property for a style to its default setting. |
| ResetBackColor() | Resets the BackColor property to its default value. |
| ResetBackground() | Resets the Background property to its default value. |
| ResetBorder() | Resets the Border property to its default value. |
| ResetCanFocus() | Resets the CanFocus property to its default value. |
| ResetCellType() | Resets the CellType property to its default value. |
| ResetEditor() | Resets the Editor property to its default value. |
| ResetEncodeValue() | Resets the EncodeValue property to its default value. |
| ResetFont() | Resets the Font property to its default value. |
| ResetForeColor() | Resets the ForeColor property to its default value. |
| ResetFormatter() | Resets the Formatter property to its default value. |
| ResetHorizontalAlignment() | Resets the HorizontalAlign property to its default value. |
| ResetImeMode() | Resets the ImeMode property to its default value. |
| ResetLocked() | Resets the Locked property to its default value. |
| ResetMargin() | Resets the Margin property to its default value. |
| ResetParent() | Resets the Parent property to its default value. |
| ResetRenderer() | Resets the Renderer property to its default value. |
| ResetTabStop() | Resets the TabStop property to its default value. |
| ResetVerticalAlignment() | Resets the VerticalAlign property to its default value. |
| SameAppearance(StyleInfo) | Compares a StyleInfo object's appearance with the current object's appearance. |
| Serialize(XmlTextWriter) | Saves the style information to XML. |
| Serialize2(XmlTextWriter) | Saves the style information to XML using short names. |
| SetFlag(SheetStyleProperty, bool) | Sets a flag to indicate whether a property has been set. |
| Name | Description |
|---|---|
| operator ==(StyleInfo, object) | Compares a specified StyleInfo object with another object for equality. |
| operator !=(StyleInfo, object) | Compares a specified StyleInfo object with another object for inequality. |