[]
Represents a custom style, an object that can be used to set style information for other objects.
[TypeConverter(typeof(_rc))]
public class NamedStyle : StyleInfo, IComparable, IComparable<StyleInfo>, ISerializable, ICanSerializeXml, ISerializeSupport
<TypeConverter(GetType(_rc))>
Public Class NamedStyle
Inherits StyleInfo
Implements 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. |
| Border | Gets or sets the border for the style. |
| CanFocus | Gets or sets whether the user can set focus to the cell using the keyboard or mouse. |
| CellPadding | Gets or sets the amount of spaces for cell padding in the cell in pixels. |
| CellType | Gets or sets the cell type 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. |
| HorizontalAlignment | Gets or sets the horizontal alignment for the named style. |
| ImeMode | Gets or sets the IME mode for the style. |
| ImeSentenceMode | Gets or sets the IME sentence mode for the style. |
| InputScope | Gets or sets the input scope for the style. |
| IsEmpty | Gets whether there are no style settings set. |
| LockBackColor | Gets or sets the background color of locked cells. |
| LockFont | Gets or sets the font for locked cells. |
| LockForeColor | Gets or sets the foreground color of locked cells. |
| Locked | Gets or sets whether this style permits a cell to be edited when the sheet is protected. |
| Name | Gets or sets the name of the style. |
| NoteIndicatorColor | Gets or sets the color of the cell note indicator. |
| NoteIndicatorPosition | Gets or sets the position of the note indicator for a cell. |
| NoteIndicatorSize | Gets or sets the size of the cell note indicator. |
| NoteStyle | Gets or sets the style of cell notes for the cell style. |
| Parent | Gets or sets the name of the parent for the style. |
| Renderer | Gets or sets the renderer for the style. |
| TabStop | Gets or sets whether the user can set focus to the cell using the Tab key. |
| TextIndent | Gets or sets the amount to indent the text in a cell. |
| VerticalAlignment | Gets or sets the vertical alignment for the style. |
| VisualStyles | Gets or sets the visual style setting for the named 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. |
| CopyTo(BaseStyleInfo) | Copy info to the target object. |
| Deserialize(XmlNodeReader) | Loads the 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. |
| IsBackColorSet() | Gets whether the background color of the cell (BackColor property) is set. |
| IsBorderSet() | Gets whether the cell border (Border property) is set. |
| IsCanFocusSet() | Gets whether the focusable setting of the cell (CanFocus property) is set. |
| IsCellPaddingSet() | Gets whether the cell padding of the cell is set. |
| IsCellTypeSet() | Gets whether the type of cell (CellType property) is set. |
| IsEditorSet() | Gets whether the editor for the cell (Editor property) is set. |
| IsFontSet() | Gets whether the font of the cell (Font property) is set. |
| IsForeColorSet() | Gets whether the text color of the cell (ForeColor property) is set. |
| IsFormatterSet() | Gets whether the formatter for the cell (Formatter property) is set. |
| IsHorizontalAlignmentSet() | Gets whether the horizontal alignment of the cell contents (HorizontalAlignment property) is set. |
| IsImeModeSet() | Gets whether IME mode is on (ImeMode property set) for a cell. |
| IsImeSentenceModeSet() | Gets whether IME Sentence mode is on (ImeMode property set) for a cell. |
| IsInputScopeSet() | Gets whether input scope is on (InputScope property set) for a cell. |
| IsLockBackColorSet() | Gets whether the lockedBackColor setting of the cell (LockBackColor property) is set. |
| IsLockFontSet() | Gets whether the lockedFont setting of the cell (LockFont property) is set. |
| IsLockForeColorSet() | Gets whether the lockedForeColor setting of the cell (LockForeColor property) is set. |
| IsLockedSet() | Gets whether the locked setting of the cell (Locked property) is set. |
| IsNoteIndicatorColorSet() | Gets whether the cell note indicator color of the cell is set. |
| IsNoteIndicatorPositionSet() | Determines whether the cell note indicator position is set. |
| IsNoteIndicatorSizeSet() | Determines whether the cell note indicator size is set. |
| IsNoteStyleSet() | Gets whether the note style setting of the cell (NoteStyle property) is set. |
| IsPropertySet(SheetStyleProperty) | Gets whether the specified cell style setting (property) is set. |
| IsRendererSet() | Gets whether the renderer for the cell (Renderer property) is set. |
| IsTabStopSet() | Gets whether the tab stop setting of the cell (TabStop property) is set. |
| IsTextIndentSet() | Determines whether the text indent is set. |
| IsVerticalAlignmentSet() | Gets whether the vertical alignment of the cell contents (VerticalAlignment property) is set. |
| IsVisualStyleSet() | Gets whether visual styles are on (VisualStyles property set) for a cell. |
| OnChanged(EventArgs) | Raises the Changed event. |
| Reset() | Resets all the named style properties to their default values. |
| ResetBackColor() | Resets the background color for the style to the default setting (not set). |
| ResetBorder() | Resets the border for the style to the default setting (not set). |
| ResetCanFocus() | Resets to its default value whether the user can set focus to the cell using the keyboard or mouse. |
| ResetCellPadding() | Resets the cell padding. |
| ResetCellType() | Resets the cell type for the style to the default setting (not set). |
| ResetEditor() | Resets the editor for the style to the default setting (not set). |
| ResetFont() | Resets the font for the style to the default setting (not set). |
| ResetForeColor() | Resets the text color for the style to the default setting (not set). |
| ResetFormatter() | Resets the formatter for the style to the default setting (not set). |
| ResetHorizontalAlignment() | Resets the horizontal alignment for the style to the default setting (not set). |
| ResetImeMode() | Resets the IME mode for the style to the default setting (not set). |
| ResetImeSentenceMode() | Resets the IME sentence mode for the style to the default setting (not set). |
| ResetInputScope() | Resets the InputScope property to its default value. |
| ResetLockBackColor() | Resets the lock background color for the style to the default setting (not set). |
| ResetLockFont() | Resets the lock font for the style to the default setting (not set). |
| ResetLockForeColor() | Resets the lock fore color for the style to the default setting (not set). |
| ResetLocked() | Resets to the default setting for the style whether this style permits a cell to be edited when the sheet is protected (not set). |
| ResetName() | Resets the name of the style to the default (String.Empty). |
| ResetNoteIndicatorColor() | Resets to its default value the color of the note indicator for the style. |
| ResetNoteIndicatorPosition() | Resets to its default value the position of the note indicator for the style. |
| ResetNoteIndicatorSize() | Resets to its default value the color of the note indicator for the style. |
| ResetNoteStyle() | Resets to the default setting the style of cell notes (not set). |
| ResetParent() | Resets the Parent property to its default value. |
| ResetProperty(SheetStyleProperty) | Resets the specified property to the default setting (not set). |
| ResetRenderer() | Resets the renderer for the style to the default setting (not set). |
| ResetTabStop() | Resets to its default value whether the user can set focus to the cell using the Tab key. |
| ResetTextIndent() | Resets the text indent. |
| ResetVerticalAlignment() | Resets the vertical alignment for the style to the default setting (not set). |
| ResetVisualStyles() | Resets the visual styles (XP themes) for the style to the default. |
| Serialize(XmlTextWriter) | Saves the 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. |