[]
Represents a custom style, an object that can be used to set style information for other objects.
public class NamedStyle : StyleInfo, ICloneable, ISerializeSupport2, IComparable, IComparable<StyleInfo>, ISerializable, ICanSerializeXml, ISerializeSupport
Public Class NamedStyle
Inherits StyleInfo
Implements ICloneable, ISerializeSupport2, IComparable, IComparable(Of StyleInfo), ISerializable, ICanSerializeXml, ISerializeSupport
| Name | Description |
|---|---|
| NamedStyle() | Creates a custom style (NamedStyle object) with no name and no parent. |
| NamedStyle(SerializationInfo, StreamingContext) | Creates a custom style (NamedStyle object) for sharing settings across models. |
| NamedStyle(string) | Creates a custom style (NamedStyle object) with the specified name. |
| NamedStyle(string, string) | Creates a custom style (NamedStyle object) with the specified name and parent. |
| NamedStyle(string, string, StyleInfo) | Creates a custom style (NamedStyle object) using the specified StyleInfo object, name, and parent name. |
| Name | Description |
|---|---|
| BackColor | Gets or sets the background color for the style. |
| Background | Gets or sets the background for the style. |
| Border | Gets or sets the border for the style. |
| CellType | Gets or sets the cell type object for the style. |
| Editor | Gets or sets the editor for the style. |
| Font | Gets or sets the font for the style. |
| ForeColor | Gets or sets the text color for the style. |
| Formatter | Gets or sets the formatter for the style. |
| HorizontalAlign | Gets or sets the horizontal alignment for the style. |
| ImeMode | Gets or sets the state of an Input Method Editor (IME) of the cell for the style |
| Locked | Gets or sets whether this style permits a cell to be edited. |
| Name | Gets or sets the name of the style. |
| Parent | Gets or sets the name of the parent for the style. |
| Renderer | Gets or sets the renderer for the style. |
| VerticalAlign | Gets or sets the vertical alignment for the style. |
| Name | Description |
|---|---|
| Clone() | Creates and returns a copy of this object. |
| CopyFrom(object) | Copies the properties of the specified object to the current object. |
| Deserialize(XmlNodeReader) | Loads the style object from XML. |
| Equals(object) | Determines whether another object is a reference to this object. |
| GetHashCode() | Gets the hash code of this object. |
| GetObjectData(SerializationInfo, StreamingContext) | Populates the SerializationInfo class with information about the style settings. |
| OnChanged(EventArgs) | Raises the Changed event. |
| Reset() | Resets all the named style properties to their default values. |
| Reset(SheetStyleProperty) | Resets the specified property to the default setting (not set). |
| ResetName() | Resets the name of the style to the default (String.Empty). |
| Serialize(XmlTextWriter) | Saves the style object to XML. |
| ToString() | Gets the value of the Name property. |
| Name | Description |
|---|---|
| Changed | Occurs when the named style has changed. |
| Name | Description |
|---|---|
| operator ==(NamedStyle, object) | Determines whether two styles (a specified object and a NamedStyle object) are equal. |
| operator !=(NamedStyle, object) | Determines whether two styles (a specified object and a NamedStyle object) are not equal. |