Class GridStyleInfo
GridStyleInfo holds all information stored for a cell.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridStyleInfo : StyleInfoBase, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IRenderCellInfo, IDisposable
Remarks
GridStyleInfo provides user-friendly access to all properties stored in GridStyleInfoStore. A cell's behavior and appearance can be customized with these properties. It also has Identity information and can inherit properties from base styles (row styles, column styles, table style).
Constructors
GridStyleInfo()
Initalizes a new style object.
Declaration
public GridStyleInfo()
GridStyleInfo(GridStyleInfo)
Initalizes a new style object and copies all data from an existing style object.
Declaration
public GridStyleInfo(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | The style object that contains the original data. |
GridStyleInfo(GridStyleInfoStore)
Initalizes a new style object and associates it with an existing GridStyleInfoStore.
Declaration
public GridStyleInfo(GridStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfoStore | store | A GridStyleInfoStore that holds data for this GridStyleInfo. All changes in this style object will be saved in the GridStyleInfoStore object. |
GridStyleInfo(StyleInfoIdentityBase)
Initalizes a new style object and associates it with an existing GridStyleInfoIdentity.
Declaration
public GridStyleInfo(StyleInfoIdentityBase identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoIdentityBase | identity | A GridStyleInfoIdentity that holds the indentity for this GridStyleInfo. |
GridStyleInfo(StyleInfoIdentityBase, GridStyleInfoStore)
Initalizes a new style object and associates it with an existing GridStyleInfoIdentity.
Declaration
public GridStyleInfo(StyleInfoIdentityBase identity, GridStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoIdentityBase | identity | A GridStyleInfoIdentity that holds the indentity for this GridStyleInfo. |
GridStyleInfoStore | store | A GridStyleInfoStore that holds data for this GridStyleInfo. All changes in this style object will be saved in the GridStyleInfoStore object. |
Fields
Empty
An empty style object.
Declaration
public static readonly GridStyleInfo Empty
Field Value
Type |
---|
GridStyleInfo |
Properties
AcceptsReturn
Gets or sets a value indicating whether pressing the <Enter>-Key should insert a new line into the edited text.
Declaration
public bool AcceptsReturn { get; set; }
Property Value
Type |
---|
System.Boolean |
AnimationDuration
Gets or Sets the AnimationDuration property
Declaration
public Duration AnimationDuration { get; set; }
Property Value
Type |
---|
System.Windows.Duration |
ApplyConditionalFormatBasedOn
Declaration
public ApplyConditionalBasedOn ApplyConditionalFormatBasedOn { get; set; }
Property Value
Type |
---|
ApplyConditionalBasedOn |
AutoPopulateDropDownColumns
Gets or sets a value indicating whether [auto populate drop down columns].
Declaration
public bool AutoPopulateDropDownColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AutoWordSelection
Gets or sets a value that determines whether when a user selects part of a word by dragging across it with the mouse, the rest of the word is selected.
Declaration
public bool AutoWordSelection { get; set; }
Property Value
Type |
---|
System.Boolean |
Background
Gets or sets a background brush for the cell.
Declaration
public Brush Background { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
BackgroundAnimationFromColor
Gets or Sets the BackgroundAnimationFromColor property
Declaration
public Color BackgroundAnimationFromColor { get; set; }
Property Value
Type |
---|
System.Windows.Media.Color |
BackgroundAnimationToColor
Gets or Sets the BackgroundAnimationFromColor property
Declaration
public Color BackgroundAnimationToColor { get; set; }
Property Value
Type |
---|
System.Windows.Media.Color |
BaseStyle
Gets or sets the base style for this style instance with default values for properties that are not initialized for this style object.
Declaration
public string BaseStyle { get; set; }
Property Value
Type |
---|
System.String |
BorderMargins
Holds extra border margins in pixels. When drawing a cell, this specifies the area between the cell rectangle without border and the inner rectangle of the cell with cell buttons.
Declaration
public CellMarginsInfo BorderMargins { get; set; }
Property Value
Type |
---|
CellMarginsInfo |
Remarks
The default value for the BorderMargins property is CellMarginsInfo.Empty.
The property affects the behavior or appearance of call cell types.
Borders
Gets or sets cell borders.
Declaration
public CellBordersInfo Borders { get; set; }
Property Value
Type |
---|
CellBordersInfo |
CaretBrush
Gets or sets CaretBrush for Caret in TextBox.
Declaration
public Brush CaretBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
CellEditTemplate
Declaration
public DataTemplate CellEditTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
CellEditTemplateKey
Declaration
public string CellEditTemplateKey { get; set; }
Property Value
Type |
---|
System.String |
CellIdentity
Holds identity information such as row and column index for the current GridStyleInfo.
Declaration
public GridStyleInfoIdentity CellIdentity { get; set; }
Property Value
Type |
---|
GridStyleInfoIdentity |
CellItemTemplate
Declaration
public DataTemplate CellItemTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
CellItemTemplateKey
Declaration
public string CellItemTemplateKey { get; set; }
Property Value
Type |
---|
System.String |
CellModel
Returns the associated GridCellModelBase for this style object.
Declaration
public GridCellModelBase CellModel { get; }
Property Value
Type |
---|
GridCellModelBase |
CellRowColumnIndex
Returns the cell row column index.
Declaration
public RowColumnIndex CellRowColumnIndex { get; }
Property Value
Type |
---|
RowColumnIndex |
CellType
Gets or sets the cell type information for the cell.
Declaration
public string CellType { get; set; }
Property Value
Type |
---|
System.String |
CellValue
Gets or sets the cell value information for the cell.
Declaration
public object CellValue { get; set; }
Property Value
Type |
---|
System.Object |
CellValue2
Gets or sets the cell value 2 information of the cell.
Declaration
public object CellValue2 { get; set; }
Property Value
Type |
---|
System.Object |
CellValueType
Gets or sets the cell value type information for the cell.
Declaration
public Type CellValueType { get; set; }
Property Value
Type |
---|
System.Type |
CharacterCasing
Gets or sets if cell control modifies the case of characters as they are typed.
Declaration
public CharacterCasing CharacterCasing { get; set; }
Property Value
Type |
---|
System.Windows.Controls.CharacterCasing |
ChildRelationalColumn
Gets or sets the Mapping name of child relational column
Declaration
public string ChildRelationalColumn { get; set; }
Property Value
Type |
---|
System.String |
ChoiceList
Gets or sets items to be displayed in a drop-down list.
Declaration
public StringCollection ChoiceList { get; set; }
Property Value
Type |
---|
System.Collections.Specialized.StringCollection |
Remarks
The default value for the ChoiceList property is NULL.
The property affects the behavior or appearance of the following cell types:
- langword_csharp_ComboBox (GridCellComboBoxCellRenderer)
ColumnIndex
Gets the column index.
Declaration
public int ColumnIndex { get; }
Property Value
Type |
---|
System.Int32 |
Comment
Gets or sets the text that should appear in the cell comment tip.
Declaration
public string Comment { get; set; }
Property Value
Type |
---|
System.String |
CommentAlignment
Determines where the cell comment tip has to be displayed.
Declaration
public CommentAlignment CommentAlignment { get; set; }
Property Value
Type |
---|
CommentAlignment |
CommentBrush
Determines the Color of Comment Service Triangle
Declaration
public Brush CommentBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
CommentTemplateKey
Gets or sets the template(key) for the cell comment tip display.
Declaration
public string CommentTemplateKey { get; set; }
Property Value
Type |
---|
System.String |
ConditionalFormat
Declaration
public GridConditionalFormat ConditionalFormat { get; set; }
Property Value
Type |
---|
GridConditionalFormat |
ConditionalFormats
Declaration
public GridConditionalFormats ConditionalFormats { get; set; }
Property Value
Type |
---|
GridConditionalFormats |
ContextMenuItems
Declaration
public IEnumerable ContextMenuItems { get; set; }
Property Value
Type |
---|
System.Collections.IEnumerable |
ContextMenuItemSource
Declaration
public IEnumerable ContextMenuItemSource { get; set; }
Property Value
Type |
---|
System.Collections.IEnumerable |
ContextMenuTemplate
Declaration
public DataTemplate ContextMenuTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
CultureInfo
Gets or sets the culture information holds rules for parsing and formatting the cell's value.
Declaration
[CloneableProperty(false)]
[DisposeableProperty(false)]
public CultureInfo CultureInfo { get; set; }
Property Value
Type |
---|
System.Globalization.CultureInfo |
CurrencyEdit
Gets or sets CurrencyEdit state. CurrencyEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridCurrencyEditStyleInfo CurrencyEdit { get; set; }
Property Value
Type |
---|
GridCurrencyEditStyleInfo |
DataValidationTooltip
Gets or sets the Data Validation Tooltip.
Declaration
public string DataValidationTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data validation tooltip. |
DataValidationTooltipLocation
Gets or sets the data validation tooltip location.
Declaration
public Point DataValidationTooltipLocation { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Point | The data validation tooltip location. |
DataValidationTooltipTemplateKey
Gets or sets the data validation tooltip template key.
Declaration
public string DataValidationTooltipTemplateKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data validation tooltip template key. |
DateTimeEdit
Gets or sets DateTimeEdit state. DateTimeEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridDateTimeEditStyleInfo DateTimeEdit { get; set; }
Property Value
Type |
---|
GridDateTimeEditStyleInfo |
Default
Gets a GridStyleInfo with default settings.
Declaration
public static GridStyleInfo Default { get; }
Property Value
Type |
---|
GridStyleInfo |
Description
Gets / sets the text that is shown in check box or pushbuttons.
Declaration
public string Description { get; set; }
Property Value
Type |
---|
System.String |
DisplayMember
Gets or sets the Name the property in the
Declaration
public string DisplayMember { get; set; }
Property Value
Type |
---|
System.String |
Remarks
The default value for the DisplayMember property is String.Empty.
The property affects the behavior or appearance of the following cell types:
- langword_csharp_ComboBox (GridCellComboBoxCellRenderer)
- langword_csharp_DropDownList (GridCellGridListControlDropDownCellRenderer)
DoubleEdit
Gets or sets DoubleEdit state. DoubleEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridDoubleEditStyleInfo DoubleEdit { get; set; }
Property Value
Type |
---|
GridDoubleEditStyleInfo |
DropDownColumnSizer
Gets or sets the drop down column sizer.
Declaration
public GridControlLengthUnitType DropDownColumnSizer { get; set; }
Property Value
Type | Description |
---|---|
GridControlLengthUnitType | The drop down column sizer. |
DropdownEdit
Gets or sets DropdownEdit state. DropdownEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridDropdownEditStyleInfo DropdownEdit { get; set; }
Property Value
Type |
---|
GridDropdownEditStyleInfo |
DropDownStyle
Gets or sets if user input is restricted to items from the ChoiceList or
Declaration
public GridDropDownStyle DropDownStyle { get; set; }
Property Value
Type |
---|
GridDropDownStyle |
Remarks
The default value for the DropDownStyle property is GridDropDownStyle.Editable.
The property affects the behavior or appearance of the following cell types:
- langword_csharp_ComboBox (GridCellComboBoxCellRenderer)
- langword_csharp_DropDownList (GridCellGridListControlDropDownCellRenderer)
DropDownVisibleColumns
Gets or sets the drop down visible columns.
Declaration
public GridListColumnsCollection DropDownVisibleColumns { get; set; }
Property Value
Type | Description |
---|---|
GridListColumnsCollection | The drop down visible columns. |
Enabled
Gets or sets a value indicating whether the cell can be activated as current cell or if the cell should be skipped when moving the current cell.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableFloatingCell
Gets or sets a value indicating whether pressing the <Enter>-Key should insert a new line into the edited text.
Declaration
public bool EnableFloatingCell { get; set; }
Property Value
Type |
---|
System.Boolean |
Error
Gets or sets the error information if a text could not be converted to the Type specified with CellValueType.
Declaration
public string Error { get; set; }
Property Value
Type |
---|
System.String |
ErrorAlartTitle
Declaration
public string ErrorAlartTitle { get; set; }
Property Value
Type |
---|
System.String |
ErrorAlertText
Gets or sets the error alert text. Used to hold the error alert text, while import the excel file to grid.
Declaration
public string ErrorAlertText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The error alert text. |
ErrorAlertTitle
Gets or sets the error alert title. Used to hold the error alert tile, while import the excel file to grid.
Declaration
public string ErrorAlertTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The error alert title. |
ErrorInfo
Gets or sets the GridErrorStyleInfo for the cell.
Declaration
public GridErrorStyleInfo ErrorInfo { get; set; }
Property Value
Type |
---|
GridErrorStyleInfo |
Exception
Gets or sets the exception.
Declaration
public Exception Exception { get; set; }
Property Value
Type |
---|
System.Exception |
FixSubObjectsDerivedFromRowandColStyle
Gets or sets a value indicating whether the cells are derived from row and column styles. In the case that the base style that implements a specific subobject (e.g. Borders, Font, ...) is a row style the column style would be ignored if we return here the subobject row of the row style in the optimized ReadOnlyBorders property. Returning the normal Borders objects instead fixes this problem.
Declaration
public static bool FixSubObjectsDerivedFromRowandColStyle { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
Default value is true. You can set it false if you relied on previous fault behavior.
FloatCellMode
Gets or sets a value indicating whether cell has to be floated on static mode.
Declaration
public GridFloatCellsMode FloatCellMode { get; set; }
Property Value
Type |
---|
GridFloatCellsMode |
FloodCell
Gets or sets a value indicating whether can be flood from the previous column cell that is floated.
Declaration
public bool FloodCell { get; set; }
Property Value
Type |
---|
System.Boolean |
FlowDirection
Gets or sets the content flow direction for the cell text and ui elements.
Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
Type |
---|
System.Windows.FlowDirection |
Font
Gets or sets the font for drawing text.
Declaration
public GridFontInfo Font { get; set; }
Property Value
Type |
---|
GridFontInfo |
Foreground
Gets or sets a foreground brush for the cell.
Declaration
public Brush Foreground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Format
Gets or sets the cell format.
Declaration
public string Format { get; set; }
Property Value
Type |
---|
System.String |
FormatPreview
Returns a formatted text for the default value for a specified CellValueType.
Declaration
public string FormatPreview { get; }
Property Value
Type |
---|
System.String |
FormatProvider
Gets or sets the cell FormatProvider.
Declaration
public IFormatProvider FormatProvider { get; set; }
Property Value
Type |
---|
System.IFormatProvider |
FormattedText
Gets the value formatted with the Format mask and custom formatting of the GetFormattedText(GridStyleInfo, Object, Int32) method of the associated GridCellModelBase or sets the value by calling the ApplyFormattedText(GridStyleInfo, String, Int32) of the associated GridCellModelBase.
Declaration
public string FormattedText { get; set; }
Property Value
Type |
---|
System.String |
FormulaTag
Gets or sets the formula information for the cell.
Declaration
public GridFormulaTag FormulaTag { get; set; }
Property Value
Type |
---|
GridFormulaTag |
GridCommentStyleInfo
Declaration
public GridCommentStyleInfo GridCommentStyleInfo { get; set; }
Property Value
Type |
---|
GridCommentStyleInfo |
GridModel
Returns the grid model.
Declaration
public GridModel GridModel { get; }
Property Value
Type |
---|
GridModel |
HasAcceptsReturn
Determines if AcceptsReturn has been initialized for the current object.
Declaration
public bool HasAcceptsReturn { get; }
Property Value
Type |
---|
System.Boolean |
HasAutoPopulateDropDownColumns
Gets a value indicating whether this instance has auto populate drop down columns.
Declaration
public bool HasAutoPopulateDropDownColumns { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasAutoWordSelection
Determines if AutoWordSelection has been initialized for the current object.
Declaration
public bool HasAutoWordSelection { get; }
Property Value
Type |
---|
System.Boolean |
HasBackground
Determines if Background has been initialized for the current object.
Declaration
public bool HasBackground { get; }
Property Value
Type |
---|
System.Boolean |
HasBaseStyle
Determines if BaseStyle has been initialized for the current object.
Declaration
public bool HasBaseStyle { get; }
Property Value
Type |
---|
System.Boolean |
HasBorderMargins
Determines if BorderMargins has been initialized for the current object.
Declaration
public bool HasBorderMargins { get; }
Property Value
Type |
---|
System.Boolean |
HasBorders
Determines if border information has been initialized for the current object.
Declaration
public bool HasBorders { get; }
Property Value
Type |
---|
System.Boolean |
HasCaretBrush
Determines if CaretBrush has been initialized for the current object.
Declaration
public bool HasCaretBrush { get; }
Property Value
Type |
---|
System.Boolean |
HasCellEditTemplate
Determines if
Declaration
public bool HasCellEditTemplate { get; }
Property Value
Type |
---|
System.Boolean |
HasCellEditTemplateKey
Determines if
Declaration
public bool HasCellEditTemplateKey { get; }
Property Value
Type |
---|
System.Boolean |
HasCellItemTemplate
Determines if
Declaration
public bool HasCellItemTemplate { get; }
Property Value
Type |
---|
System.Boolean |
HasCellItemTemplateKey
Determines if
Declaration
public bool HasCellItemTemplateKey { get; }
Property Value
Type |
---|
System.Boolean |
HasCellType
Determines if CellType has been initialized for the current object.
Declaration
public bool HasCellType { get; }
Property Value
Type |
---|
System.Boolean |
HasCellValue
Determines if CellValue has been initialized for the current object.
Declaration
public bool HasCellValue { get; }
Property Value
Type |
---|
System.Boolean |
HasCellValue2
Determines if CellValue2 has been initialized for the current object.
Declaration
public bool HasCellValue2 { get; }
Property Value
Type |
---|
System.Boolean |
HasCellValueType
Determines if CellValueType has been initialized for the current object.
Declaration
public bool HasCellValueType { get; }
Property Value
Type |
---|
System.Boolean |
HasCharacterCasing
Determines if CharacterCasing has been initialized for the current object.
Declaration
public bool HasCharacterCasing { get; }
Property Value
Type |
---|
System.Boolean |
HasChoiceList
Determines if ChoiceList has been initialized for the current object.
Declaration
public bool HasChoiceList { get; }
Property Value
Type |
---|
System.Boolean |
HasConditionalFormat
Declaration
public bool HasConditionalFormat { get; }
Property Value
Type |
---|
System.Boolean |
HasConditionalFormats
Declaration
public bool HasConditionalFormats { get; }
Property Value
Type |
---|
System.Boolean |
HasCultureInfo
Determines if CultureInfo has been initialized for the current object.
Declaration
public bool HasCultureInfo { get; }
Property Value
Type |
---|
System.Boolean |
HasCurrencyEdit
Determines if CurrencyEdit has been initialized for the current object.
Declaration
public bool HasCurrencyEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasDataValidationTooltip
Gets a value indicating whether this instance has data validation tooltip.
Declaration
public bool HasDataValidationTooltip { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasDataValidationTooltipLocation
Gets a value indicating whether this instance has data validation tooltip location.
Declaration
public bool HasDataValidationTooltipLocation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasDataValidationTooltipTemplateKey
Gets a value indicating whether this instance has data validation tooltip template key.
Declaration
public bool HasDataValidationTooltipTemplateKey { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasDateTimeEdit
Determines if DateTimeEdit has been initialized for the current object.
Declaration
public bool HasDateTimeEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasDescription
Determines if Description has been initialized for the current object.
Declaration
public bool HasDescription { get; }
Property Value
Type |
---|
System.Boolean |
HasDisplayMember
Determines if DisplayMember has been initialized for the current object.
Declaration
public bool HasDisplayMember { get; }
Property Value
Type |
---|
System.Boolean |
HasDoubleEdit
Determines if DoubleEdit has been initialized for the current object.
Declaration
public bool HasDoubleEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasDropDownColumnSizer
Gets a value indicating whether this instance has drop down column sizer.
Declaration
public bool HasDropDownColumnSizer { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasDropdownEdit
Determines if DropdownEdit has been initialized for the current object.
Declaration
public bool HasDropdownEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasDropDownStyle
Determines whether DropDownStyle is initialized for the current object.
Declaration
public bool HasDropDownStyle { get; }
Property Value
Type |
---|
System.Boolean |
HasDropDownVisibleColumns
Gets a value indicating whether this instance has drop down visible columns.
Declaration
public bool HasDropDownVisibleColumns { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasEnabled
Determines if Enabled has been initialized for the current object.
Declaration
public bool HasEnabled { get; }
Property Value
Type |
---|
System.Boolean |
HasEnableFloatingCell
Determines if AcceptsReturn has been initialized for the current object.
Declaration
public bool HasEnableFloatingCell { get; }
Property Value
Type |
---|
System.Boolean |
HasError
Determines if Error has been initialized for the current object.
Declaration
public bool HasError { get; }
Property Value
Type |
---|
System.Boolean |
HasErrorAlartTitle
Declaration
public bool HasErrorAlartTitle { get; }
Property Value
Type |
---|
System.Boolean |
HasErrorAlertText
Gets a value indicating whether this instance has error alert text.
Declaration
public bool HasErrorAlertText { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasErrorAlertTitle
Gets a value indicating whether this instance has error alert title.
Declaration
public bool HasErrorAlertTitle { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasErrorInfo
Determines if ErrorInfo has been initialized for the current object.
Declaration
public bool HasErrorInfo { get; }
Property Value
Type |
---|
System.Boolean |
HasException
Determines if Exception has been initialized for the current object.
Declaration
public bool HasException { get; }
Property Value
Type |
---|
System.Boolean |
HasFloatCellMode
Determines if FloatCellMode has been initialized for the current object.
Declaration
public bool HasFloatCellMode { get; }
Property Value
Type |
---|
System.Boolean |
HasFloodCell
Determines if FloodCell has been initialized for the current object.
Declaration
public bool HasFloodCell { get; }
Property Value
Type |
---|
System.Boolean |
HasFlowDirection
Determines if FlowDirection has been initialized for the current object.
Declaration
public bool HasFlowDirection { get; }
Property Value
Type |
---|
System.Boolean |
HasFont
Determines if font information has been initialized for the current object.
Declaration
public bool HasFont { get; }
Property Value
Type |
---|
System.Boolean |
HasForeground
Determines if text color has been initialized for the current object.
Declaration
public bool HasForeground { get; }
Property Value
Type |
---|
System.Boolean |
HasFormat
Determines if Format has been initialized for the current object.
Declaration
public bool HasFormat { get; }
Property Value
Type |
---|
System.Boolean |
HasFormatProvider
Determines if HasFormatProvider has been initialized for the current object.
Declaration
public bool HasFormatProvider { get; }
Property Value
Type |
---|
System.Boolean |
HasFormulaTag
Determines if FormulaTag has been initialized for the current object.
Declaration
public bool HasFormulaTag { get; }
Property Value
Type |
---|
System.Boolean |
HasGridCommentStyleInfo
Declaration
public bool HasGridCommentStyleInfo { get; }
Property Value
Type |
---|
System.Boolean |
HasHeaderBackGround
Declaration
public bool HasHeaderBackGround { get; set; }
Property Value
Type |
---|
System.Boolean |
HasHeaderForeGround
Declaration
public bool HasHeaderForeGround { get; set; }
Property Value
Type |
---|
System.Boolean |
HasHorizontalAlignment
Determines if HorizontalAlignment has been initialized for the current object.
Declaration
public bool HasHorizontalAlignment { get; }
Property Value
Type |
---|
System.Boolean |
HasImageContentAlignment
Determines whether ImageContentAlignment is initialized for current object.
Declaration
public bool HasImageContentAlignment { get; }
Property Value
Type |
---|
System.Boolean |
HasImageContentStretch
Determines whether ImageContentStretch is initialized for current object.
Declaration
public bool HasImageContentStretch { get; }
Property Value
Type |
---|
System.Boolean |
HasImageHeight
Determines whether ImageHeight is initialized for current object.
Declaration
public bool HasImageHeight { get; }
Property Value
Type |
---|
System.Boolean |
HasImageIndex
Determines whether ImageIndex is initialized for current object.
Declaration
public bool HasImageIndex { get; }
Property Value
Type |
---|
System.Boolean |
HasImageList
Determines whether ImageList is initialized for current object.
Declaration
public bool HasImageList { get; }
Property Value
Type |
---|
System.Boolean |
HasImageMargins
Determines whether ImageMargins is initialized for current object.
Declaration
public bool HasImageMargins { get; }
Property Value
Type |
---|
System.Boolean |
HasImageWidth
Determines whether ImageWidth is initialized for current object.
Declaration
public bool HasImageWidth { get; }
Property Value
Type |
---|
System.Boolean |
HasIntegerEdit
Determines if IntegerEdit has been initialized for the current object.
Declaration
public bool HasIntegerEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasIsEditable
Determines if IsEditable has been initialized for the current object.
Declaration
public bool HasIsEditable { get; }
Property Value
Type |
---|
System.Boolean |
HasIsThreeState
Determines if IsThreeState has been initialized for the current object.
Declaration
public bool HasIsThreeState { get; }
Property Value
Type |
---|
System.Boolean |
HasItemsSource
Determines if ItemsSource has been initialized for the current object.
Declaration
public bool HasItemsSource { get; }
Property Value
Type |
---|
System.Boolean |
HasMaskEdit
Determines if MaskEdit has been initialized for the current object.
Declaration
public bool HasMaskEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasMaxLength
Determines if MaxLength has been initialized for the current object.
Declaration
public bool HasMaxLength { get; }
Property Value
Type |
---|
System.Boolean |
HasNegativeForeground
Determines if NegativeForeground has been initialized for the current object.
Declaration
public bool HasNegativeForeground { get; }
Property Value
Type |
---|
System.Boolean |
HasNumberFormat
Determines if NumberFormat has been initialized for the current object.
Declaration
public bool HasNumberFormat { get; }
Property Value
Type |
---|
System.Boolean |
HasPadding
Determines if Padding has been initialized for the current object.
Declaration
public bool HasPadding { get; }
Property Value
Type |
---|
System.Boolean |
HasParseFormats
Determines if ParseFormats has been initialized for the current object.
Declaration
public bool HasParseFormats { get; }
Property Value
Type |
---|
System.Boolean |
HasPercentEdit
Determines if CurrencyEdit has been initialized for the current object.
Declaration
public bool HasPercentEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasPropertyDescriptor
Determines if PropertyDescriptor has been initialized for the current object.
Declaration
public bool HasPropertyDescriptor { get; }
Property Value
Type |
---|
System.Boolean |
HasReadOnly
Determines if Read-only information has been initialized for the current object.
Declaration
public bool HasReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
HasSelectionBrush
Determines if SelectionBrush has been initialized for the current object.
Declaration
public bool HasSelectionBrush { get; }
Property Value
Type |
---|
System.Boolean |
HasSelectionOpacity
Determines if SelectionOpacity has been initialized for the current object.
Declaration
public bool HasSelectionOpacity { get; }
Property Value
Type |
---|
System.Boolean |
HasShowDataValidationTooltip
Gets a value indicating whether this instance has show data validation tooltip.
Declaration
public bool HasShowDataValidationTooltip { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasShowDropDownHeaders
Declaration
public bool HasShowDropDownHeaders { get; }
Property Value
Type |
---|
System.Boolean |
HasShowTooltip
Determines if ShowTooltip has been initialized for the current object.
Declaration
public bool HasShowTooltip { get; }
Property Value
Type |
---|
System.Boolean |
HasStaysOpenOnEdit
Determines whether StaysOpenOnEdit is initialized for the current object.
Declaration
public bool HasStaysOpenOnEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasStrictValueType
Determines if StrictValueType has been initialized for the current object.
Declaration
public bool HasStrictValueType { get; }
Property Value
Type |
---|
System.Boolean |
HasTag
Determines if Tag has been initialized for the current object.
Declaration
public bool HasTag { get; }
Property Value
Type |
---|
System.Boolean |
HasText
Determines if Text has been initialized for the current object.
Declaration
public bool HasText { get; }
Property Value
Type |
---|
System.Boolean |
HasTextMargins
Determines if TextMargins has been initialized for the current object.
Declaration
public bool HasTextMargins { get; }
Property Value
Type |
---|
System.Boolean |
HasTextTrimming
Determines if TextTrimming has been initialized for the current object.
Declaration
public bool HasTextTrimming { get; }
Property Value
Type |
---|
System.Boolean |
HasTextWrapping
Determines if TextWrapping has been initialized for the current object.
Declaration
public bool HasTextWrapping { get; }
Property Value
Type |
---|
System.Boolean |
HasTimeSpanEdit
Determines if TimeSpanEdit has been initialized for the current object.
Declaration
public bool HasTimeSpanEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasToolTip
Determines if ToolTip has been initialized for the current object.
Declaration
public bool HasToolTip { get; }
Property Value
Type |
---|
System.Boolean |
HasTooltipTemplateKey
Determines if TooltipTemplateKey has been initialized for the current object.
Declaration
public bool HasTooltipTemplateKey { get; }
Property Value
Type |
---|
System.Boolean |
HasUpDownEdit
Determines whether UpDownEdit is initialized for the current object.
Declaration
public bool HasUpDownEdit { get; }
Property Value
Type |
---|
System.Boolean |
HasUseThemes
Determines if IsThemed property has been initialized for the current object.
Declaration
public bool HasUseThemes { get; }
Property Value
Type |
---|
System.Boolean |
HasValueMember
Determines if ValueMember has been initialized for the current object.
Declaration
public bool HasValueMember { get; }
Property Value
Type |
---|
System.Boolean |
HasVerticalAlignment
Determines if VerticalAlignment has been initialized for the current object.
Declaration
public bool HasVerticalAlignment { get; }
Property Value
Type |
---|
System.Boolean |
HorizontalAlignment
Gets or sets horizontal alignment of text in the cell.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type |
---|
System.Windows.HorizontalAlignment |
Image
Gets or Sets an image to the underlying ImageList collection. This is a wrapper property that provides a way to easily set one image for this style.
Declaration
public Image Image { get; set; }
Property Value
Type |
---|
System.Windows.Controls.Image |
ImageContentAlignment
Defines the alignment options for text in text-image cells.
Declaration
public ImageContentAlignment ImageContentAlignment { get; set; }
Property Value
Type |
---|
ImageContentAlignment |
ImageContentStretch
Specifies whether to stretch the image or retain the image size when a row or column is resized.
Declaration
public ImageContentStretch ImageContentStretch { get; set; }
Property Value
Type |
---|
ImageContentStretch |
ImageHeight
Gets or sets the image height.
Declaration
public GridLength ImageHeight { get; set; }
Property Value
Type |
---|
System.Windows.GridLength |
ImageIndex
Gets or Sets the ImageIndex that is referred from style.ImageList property.
Declaration
public int ImageIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
ImageList
Gets or Sets a list of Images. This would have higher preference than ErrorInfo image.
Declaration
public ObservableCollection<Image> ImageList { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.Image> |
ImageMargins
Gets or sets the image margins.
Declaration
public CellMarginsInfo ImageMargins { get; set; }
Property Value
Type |
---|
CellMarginsInfo |
ImageWidth
Gets or sets the image width.
Declaration
public GridLength ImageWidth { get; set; }
Property Value
Type |
---|
System.Windows.GridLength |
IncrementalFilter
Defines the IncrementalFilter Value for Combo Box
Declaration
public IncrementalFilter IncrementalFilter { get; set; }
Property Value
Type |
---|
IncrementalFilter |
IntegerEdit
Gets or sets IntegerEdit state. IntegerEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridIntegerEditStyleInfo IntegerEdit { get; set; }
Property Value
Type |
---|
GridIntegerEditStyleInfo |
IsAutoReverseEnabled
Gets or Sets the AutoReverse property
Declaration
public bool IsAutoReverseEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsBackGroundAnimationEnabled
Gets or Sets a value indicating whether BackGroundAnimatioinEnabled is Enabled or not
Declaration
public bool IsBackGroundAnimationEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsEditable
Gets or sets a value indicating whether user input is restricted to items from the ChoiceList or ItemsSource.
Declaration
public bool IsEditable { get; set; }
Property Value
Type |
---|
System.Boolean |
IsMouseTrackingEnabled
Gets or Sets a value that Enable or Disable the Mouse Tracking in ComboBox or DropDownList IsMouseTrackingEnabled.
Declaration
public bool IsMouseTrackingEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsThemed
Gets or sets a value indicating whether cell types should be drawn themed.
Declaration
public bool IsThemed { get; set; }
Property Value
Type |
---|
System.Boolean |
IsThreeState
Gets or sets the Tristate value for the CheckBox.
Declaration
public bool IsThreeState { get; set; }
Property Value
Type |
---|
System.Boolean |
ItemsSource
Gets or sets a data source that holds items to be displayed in a drop-down list. A datasource can be specified instead of manually filling the choicelist with string entries.
Declaration
[CloneableProperty(false)]
[DisposeableProperty(false)]
public object ItemsSource { get; set; }
Property Value
Type |
---|
System.Object |
Remarks
The default value for the DataSource property is null.
The property affects the behavior or appearance of the following cell types:
- langword_csharp_ComboBox (GridCellComboBoxCellRenderer)
- langword_csharp_DropDownList (GridCellGridListControlDropDownCellRenderer)
MaskEdit
Gets or sets MaskedEdit state. MaskedEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridMaskEditInfo MaskEdit { get; set; }
Property Value
Type |
---|
GridMaskEditInfo |
MaxLength
Gets or sets the limits the number of characters the user can type into the cell.
Declaration
public int MaxLength { get; set; }
Property Value
Type |
---|
System.Int32 |
NegativeForeground
Gets/Sets the foreground when the current value is negative.
Declaration
public Brush NegativeForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
NumberFormat
Gets or sets the System.Globalization.NumberFormatInfo for displaying numbers, currency values and percentages.
Declaration
public NumberFormatInfo NumberFormat { get; set; }
Property Value
Type |
---|
System.Globalization.NumberFormatInfo |
Padding
Gets or sets cell padding.
Declaration
public CellMarginsInfo Padding { get; set; }
Property Value
Type |
---|
CellMarginsInfo |
ParseFormats
Specifies the permissable formats used to parse user entries of cell values.
Declaration
public string[] ParseFormats { get; set; }
Property Value
Type |
---|
System.String[] |
Remarks
The default value for the ParseFormats property is NULL.
The property affects the behavior or appearance of the following cell types:
It can be used to specify various DateTime formats that are allowed when the user enters a DateTime cell value.
PercentEdit
Gets or sets CurrencyEdit state. CurrencyEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridPercentEditStyleInfo PercentEdit { get; set; }
Property Value
Type |
---|
GridPercentEditStyleInfo |
PercentEditMode
Gets or sets the way of editing in the percent text cells.
Declaration
public PercentEditMode PercentEditMode { get; set; }
Property Value
Type |
---|
PercentEditMode |
PropertyDescriptor
Specifies a property descriptor that can be used by UITypeEditCell, PropertyGridCell, and StandardValuesCell cell types.
Declaration
public PropertyDescriptor PropertyDescriptor { get; set; }
Property Value
Type |
---|
System.ComponentModel.PropertyDescriptor |
ReadOnly
Gets or sets a value indicating whether cell contents can be modified by the user.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type |
---|
System.Boolean |
ReadOnlyBorderMargins
For internal use.
Declaration
public CellMarginsInfo ReadOnlyBorderMargins { get; }
Property Value
Type |
---|
CellMarginsInfo |
ReadOnlyBorders
For internal use.
Declaration
public CellBordersInfo ReadOnlyBorders { get; }
Property Value
Type |
---|
CellBordersInfo |
ReadOnlyFont
For internal use.
Declaration
public GridFontInfo ReadOnlyFont { get; }
Property Value
Type |
---|
GridFontInfo |
ReadOnlyImageContentAlignment
For internal use.
Declaration
public ImageContentAlignment ReadOnlyImageContentAlignment { get; }
Property Value
Type |
---|
ImageContentAlignment |
ReadOnlyImageContentStretch
Used internally.
Declaration
public ImageContentStretch ReadOnlyImageContentStretch { get; }
Property Value
Type |
---|
ImageContentStretch |
ReadOnlyImageHeight
For internal use.
Declaration
public GridLength ReadOnlyImageHeight { get; }
Property Value
Type |
---|
System.Windows.GridLength |
ReadOnlyImageMargins
For internal use.
Declaration
public CellMarginsInfo ReadOnlyImageMargins { get; }
Property Value
Type |
---|
CellMarginsInfo |
ReadOnlyImageWidth
For internal use.
Declaration
public GridLength ReadOnlyImageWidth { get; }
Property Value
Type |
---|
System.Windows.GridLength |
ReadOnlyIsThemed
For internal use.
Declaration
public bool ReadOnlyIsThemed { get; }
Property Value
Type |
---|
System.Boolean |
ReadOnlyPadding
For internal use.
Declaration
public CellMarginsInfo ReadOnlyPadding { get; }
Property Value
Type |
---|
CellMarginsInfo |
ReadOnlyTextMargins
For internal use.
Declaration
public CellMarginsInfo ReadOnlyTextMargins { get; }
Property Value
Type |
---|
CellMarginsInfo |
RowIndex
Gets the row index.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
SelectionBrush
Gets or sets SelectionBrush for Text.
Declaration
public Brush SelectionBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectionOpacity
Gets or sets SelectionOpacity for Text.
Declaration
public double SelectionOpacity { get; set; }
Property Value
Type |
---|
System.Double |
ShowDataValidationTooltip
Gets or sets whether to show data validation tooltip.
Declaration
public bool ShowDataValidationTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowDropDownHeaders
Declaration
public bool ShowDropDownHeaders { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowTooltip
Gets or sets whether to show cell tooltip.
Declaration
public bool ShowTooltip { get; set; }
Property Value
Type |
---|
System.Boolean |
StaysOpenOnEdit
Gets or sets a value indicating whether the drop-down host stays open during edit.
Declaration
public bool StaysOpenOnEdit { get; set; }
Property Value
Type |
---|
System.Boolean |
Store
The GridStyleInfoStore object that holds all the data for this style object.
Declaration
public GridStyleInfoStore Store { get; }
Property Value
Type |
---|
GridStyleInfoStore |
StrictValueType
Gets or sets a value indicating whether an exception should be thrown in the ApplyFormattedText(String) method if the formatted text can not be parsed and converted to the type specified with CellValueType.
Declaration
public bool StrictValueType { get; set; }
Property Value
Type |
---|
System.Boolean |
Tag
Gets or sets the custom tag you can associate with a cell.
Declaration
public object Tag { get; set; }
Property Value
Type |
---|
System.Object |
Text
Gets / sets the value as a string.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextMargins
Holds extra border margins in pixels. When drawing a cell, this specifies the area between the cell rectangle without border and the inner rectangle of the cell with cell buttons.
Declaration
public CellMarginsInfo TextMargins { get; set; }
Property Value
Type |
---|
CellMarginsInfo |
Remarks
The default value for the TextMargins property is CellMarginsInfo.Empty.
The property affects the behavior or appearance of call cell types:
TextTrimming
Gets or sets how text is trimmed when it exceeds the edges of the cell text rectangle.
Declaration
public TextTrimming TextTrimming { get; set; }
Property Value
Type |
---|
System.Windows.TextTrimming |
TextWrapping
Gets or sets a value indicating whether text should be wrapped when it does not fit into a single line.
Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
Type |
---|
System.Windows.TextWrapping |
TimeSpanEdit
Gets or sets TimeSpanEdit state. TimeSpanEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridTimeSpanEditStyleInfo TimeSpanEdit { get; set; }
Property Value
Type |
---|
GridTimeSpanEditStyleInfo |
ToolTip
Gets or sets the tooltip for the cell.
Declaration
public object ToolTip { get; set; }
Property Value
Type |
---|
System.Object |
TooltipTemplate
Declaration
public DataTemplate TooltipTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
TooltipTemplateKey
Gets or sets the template for cell tooltip.
Declaration
public string TooltipTemplateKey { get; set; }
Property Value
Type |
---|
System.String |
Typeface
Creates or returns a cached GDI+ font generated from font information of the Font object.
Declaration
public Typeface Typeface { get; }
Property Value
Type |
---|
System.Windows.Media.Typeface |
UpDownEdit
Gets or sets UpDownEdit state. UpDownEdit is itself an expandable object with several properties that can be set individually and participate in style inheritance mechanism.
Declaration
public GridUpDownEditStyleInfo UpDownEdit { get; set; }
Property Value
Type |
---|
GridUpDownEditStyleInfo |
ValueMember
Gets or sets a string that specifies the property of the data source from which to draw the value.
Declaration
public string ValueMember { get; set; }
Property Value
Type |
---|
System.String |
Remarks
The default value for the ValueMember property is String.Empty.
The property affects the behavior or appearance of the following cell types:
- langword_csharp_ComboBox (GridCellComboBoxCellRenderer)
- langword_csharp_DropDownList (GridCellGridListControlDropDownCellRenderer)
VerticalAlignment
Gets or sets vertical alignment of text in the cell.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type |
---|
System.Windows.VerticalAlignment |
Methods
AdjustImageMargins(Rect)
Adjusts image margins according to client rectangle.
Declaration
public Rect AdjustImageMargins(Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rectangle | Client rectangle. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Corrected margins. |
AdjustImageWidthAndHeightToMargin(Thickness, GridControlBase)
Adjusts the margins accroding to the width and height of the image.
Declaration
public Thickness AdjustImageWidthAndHeightToMargin(Thickness defaultMargin, GridControlBase grid)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Thickness | defaultMargin | Default margins. |
GridControlBase | grid | The grid. |
Returns
Type | Description |
---|---|
System.Windows.Thickness | Adjusted margins. |
AdjustImageWidthAndHeightToMargin(Thickness, Size)
Adjusts the margins accroding to the width and height of the image.
Declaration
public Thickness AdjustImageWidthAndHeightToMargin(Thickness defaultMargin, Size clientSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Thickness | defaultMargin | Default margins. |
System.Windows.Size | clientSize | Client rectangle. |
Returns
Type | Description |
---|---|
System.Windows.Thickness | Adjusted margins. |
ApplyFormattedText(String)
Parses the formatted text using Format and cell value type information stored in the current style object. The text is parsed using GridStyleInfo.CultureInfo information.
Declaration
public bool ApplyFormattedText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The formatted text. |
Returns
Type | Description |
---|---|
System.Boolean | True if the text could be parsed correctly and converted to a cell value. |
ApplyFormattedText(String, Int32)
Parses the formatted text using Format and cell value type information stored in the current style object. The text is parsed using GridStyleInfo.CultureInfo information.
Declaration
public bool ApplyFormattedText(string text, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The formatted text. |
System.Int32 | textInfo | A hint that specifies the current action why the text is parsed. |
Returns
Type | Description |
---|---|
System.Boolean | True if the text could be parsed correctly and converted to a cell value. |
ApplyText(String)
Parses the text (ignoring any Format settings) and assigns it to CellValue. The text is parsed using CultureInfo.CurrentCulture information.
Declaration
public bool ApplyText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be parsed. |
Returns
Type | Description |
---|---|
System.Boolean | True if the text could be parsed correctly and converted to a cell value. |
CreateSubObjectIdentity(StyleInfoProperty)
Creates a new StyleInfoSubObjectIdentity object and associate it with this GridStyleInfo object.
Declaration
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip | The StyleInfoProperty descriptor for this subobject. |
Returns
Type | Description |
---|---|
StyleInfoSubObjectIdentity | The StyleInfoSubObjectIdentity object that this method creates. |
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
Dispose(Boolean)
Declaration
public void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
GetCulture(Boolean)
Gets the culture information from the style object or returns CultureInfo.CurrentCulture if CultureInfo is NULL.
Declaration
public CultureInfo GetCulture(bool useCurrentCultureIfNull)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | useCurrentCultureIfNull | True if CultureInfo.CurrentUICulture should be returned when CultureInfo is NULL. |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo | The culture information with rules for parsing and formatting the cell's value. |
GetDefaultStyle()
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type |
---|
StyleInfoBase |
Overrides
GetFormattedText(Object)
Return formatted text for the specified value.
Declaration
public string GetFormattedText(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be formatted. |
Returns
Type | Description |
---|---|
System.String | A string that holds the formatted text. |
GetFormattedText(Object, Int32)
Return formatted text for the specified value. GridStyleInfo.CultureInfo is used for conversion to string.
Declaration
public string GetFormattedText(object value, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be formatted. |
System.Int32 | textInfo | A hint that specifies the current action why the text is formatted. |
Returns
Type | Description |
---|---|
System.String | A string that holds the formatted text. |
GetImageHeight()
Gets the image height.
Declaration
public double GetImageHeight()
Returns
Type | Description |
---|---|
System.Double | Height of the image. |
GetImageWidth()
Returns the image width.
Declaration
public double GetImageWidth()
Returns
Type | Description |
---|---|
System.Double | Width of the image. |
GetOffLineCopy()
Creates a new GridStyleInfo and copies its cell and identity information from the current object. The new instance will be made offline so that changes in this style object are not be stored in the GridData
Declaration
public GridStyleInfo GetOffLineCopy()
Returns
Type | Description |
---|---|
GridStyleInfo | A new GridStyleInfo instance. |
Remarks
Lets a style object load base styles and default values but disables saving changes back to the grid. (see OnStyleChanged below)
GetText(Object)
Returns text for the specified value (ignoring any Format settings). CultureInfo.CurrentCulture is used for conversion to string.
Declaration
public string GetText(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be converted to string. |
Returns
Type | Description |
---|---|
System.String | A string that represents the value. |
ResetAcceptsReturn()
Resets AcceptsReturn.
Declaration
public void ResetAcceptsReturn()
ResetAutoPopulateDropDownColumns()
Declaration
public void ResetAutoPopulateDropDownColumns()
ResetAutoWordSelection()
Resets AutoWordSelection.
Declaration
public void ResetAutoWordSelection()
ResetBackground()
Resets Background.
Declaration
public void ResetBackground()
ResetBaseStyle()
Resets BaseStyle.
Declaration
public void ResetBaseStyle()
ResetBorderMargins()
Resets BorderMargins.
Declaration
public void ResetBorderMargins()
ResetBorders()
Resets the borders information.
Declaration
public void ResetBorders()
ResetCaretBrush()
Resets CaretBrush.
Declaration
public void ResetCaretBrush()
ResetCellEditTemplate()
Resets
Declaration
public void ResetCellEditTemplate()
ResetCellEditTemplateKey()
Resets
Declaration
public void ResetCellEditTemplateKey()
ResetCellItemTemplate()
Resets
Declaration
public void ResetCellItemTemplate()
ResetCellItemTemplateKey()
Resets
Declaration
public void ResetCellItemTemplateKey()
ResetCellType()
Resets CellType.
Declaration
public void ResetCellType()
ResetCellValue()
Resets CellValue.
Declaration
public void ResetCellValue()
ResetCellValue2()
Resets CellValue2.
Declaration
public void ResetCellValue2()
ResetCellValueType()
Resets CellValueType.
Declaration
public void ResetCellValueType()
ResetCharacterCasing()
Resets CharacterCasing.
Declaration
public void ResetCharacterCasing()
ResetChoiceList()
Resets ChoiceList.
Declaration
public void ResetChoiceList()
ResetConditionalFormat()
Declaration
public void ResetConditionalFormat()
ResetConditionalFormats()
Declaration
public void ResetConditionalFormats()
ResetCultureInfo()
Resets CultureInfo.
Declaration
public void ResetCultureInfo()
ResetCurrencyEdit()
Resets CurrencyEdit property.
Declaration
public void ResetCurrencyEdit()
ResetDataValidationTooltip()
Resets the data validation tooltip.
Declaration
public void ResetDataValidationTooltip()
ResetDataValidationTooltipLocation()
Resets the data validation tooltip location.
Declaration
public void ResetDataValidationTooltipLocation()
ResetDataValidationTooltipTemplateKey()
Resets the data validation tooltip template key.
Declaration
public void ResetDataValidationTooltipTemplateKey()
ResetDateTimeEdit()
Resets DateTimeEdit property.
Declaration
public void ResetDateTimeEdit()
ResetDescription()
Resets Description.
Declaration
public void ResetDescription()
ResetDisplayMember()
Resets DisplayMember.
Declaration
public void ResetDisplayMember()
ResetDropDownColumnSizer()
Declaration
public void ResetDropDownColumnSizer()
ResetDropdownEdit()
Resets DropdownEdit property.
Declaration
public void ResetDropdownEdit()
ResetDropDownStyle()
Resets DropDownStyle.
Declaration
public void ResetDropDownStyle()
ResetDropDownVisibleColumns()
Declaration
public void ResetDropDownVisibleColumns()
ResetEnabled()
Resets Enabled.
Declaration
public void ResetEnabled()
ResetEnableFloatingCell()
Resets AcceptsReturn.
Declaration
public void ResetEnableFloatingCell()
ResetError()
Resets Error.
Declaration
public void ResetError()
ResetErrorAlartTitle()
Declaration
public void ResetErrorAlartTitle()
ResetErrorAlertText()
Resets the error alert text.
Declaration
public void ResetErrorAlertText()
ResetErrorAlertTitle()
Resets the error alert title.
Declaration
public void ResetErrorAlertTitle()
ResetErrorInfo()
Resets ErrorInfo.
Declaration
public void ResetErrorInfo()
ResetException()
Resets Exception.
Declaration
public void ResetException()
ResetFloatCellMode()
Resets FloatCellMode.
Declaration
public void ResetFloatCellMode()
ResetFloodCell()
Resets FloodCell.
Declaration
public void ResetFloodCell()
ResetFlowDirection()
Resets FlowDirection.
Declaration
public void ResetFlowDirection()
ResetFont()
Resets font information.
Declaration
public void ResetFont()
ResetForeground()
Resets text color information.
Declaration
public void ResetForeground()
ResetFormat()
Resets Format.
Declaration
public void ResetFormat()
ResetFormatProvider()
Resets FormatProvider.
Declaration
public void ResetFormatProvider()
ResetFormulaTag()
Resets FormulaTag.
Declaration
public void ResetFormulaTag()
ResetHorizontalAlignment()
Resets HorizontalAlignment.
Declaration
public void ResetHorizontalAlignment()
ResetImageContentAlignment()
Resets ImageContentAlignment.
Declaration
public void ResetImageContentAlignment()
ResetImageContentStretch()
Resets ImageContentStretch.
Declaration
public void ResetImageContentStretch()
ResetImageHeight()
Resets ImageHeight.
Declaration
public void ResetImageHeight()
ResetImageIndex()
Resets ImageIndex.
Declaration
public void ResetImageIndex()
ResetImageList()
Resets ImageList.
Declaration
public void ResetImageList()
ResetImageMargins()
Resets ImageMargins.
Declaration
public void ResetImageMargins()
ResetImageWidth()
Resets ImageWidth.
Declaration
public void ResetImageWidth()
ResetIsEditable()
Resets IsEditable.
Declaration
public void ResetIsEditable()
ResetIsThreeState()
Resets IsThreeState.
Declaration
public void ResetIsThreeState()
ResetItemsSource()
Resets ItemsSource.
Declaration
public void ResetItemsSource()
ResetMaskEditInfo()
Resets MaskEdit property.
Declaration
public void ResetMaskEditInfo()
ResetMaxLength()
Resets MaxLength.
Declaration
public void ResetMaxLength()
ResetNegativeForeground()
Resets NegativeForeground property.
Declaration
public void ResetNegativeForeground()
ResetNumberFormat()
Resets NumberFormat property.
Declaration
public void ResetNumberFormat()
ResetPadding()
Resets Padding.
Declaration
public void ResetPadding()
ResetParseFormats()
Resets ParseFormats.
Declaration
public void ResetParseFormats()
ResetPercentEdit()
Resets CurrencyEdit property.
Declaration
public void ResetPercentEdit()
ResetPercentEditMode()
Resets PercentEditMode property.
Declaration
public void ResetPercentEditMode()
ResetPropertyDescriptor()
Resets PropertyDescriptor.
Declaration
public void ResetPropertyDescriptor()
ResetReadOnly()
Resets Read-only information.
Declaration
public void ResetReadOnly()
ResetSelectionBrush()
Resets SelectionBrush.
Declaration
public void ResetSelectionBrush()
ResetSelectionOpacity()
Resets SelectionOpacity.
Declaration
public void ResetSelectionOpacity()
ResetShowDataValidationTooltip()
Resets the show data validation tooltip.
Declaration
public void ResetShowDataValidationTooltip()
ResetShowDropDownHeaders()
Declaration
public void ResetShowDropDownHeaders()
ResetShowTooltip()
Resets ShowTooltip.
Declaration
public void ResetShowTooltip()
ResetStaysOpenOnEdit()
Resets StaysOpenOnEdit.
Declaration
public void ResetStaysOpenOnEdit()
ResetStrictValueType()
Resets StrictValueType.
Declaration
public void ResetStrictValueType()
ResetTag()
Resets Tag.
Declaration
public void ResetTag()
ResetText()
Resets the Text property.
Declaration
public void ResetText()
ResetTextMargins()
Resets TextMargins.
Declaration
public void ResetTextMargins()
ResetTextTrimming()
Resets TextTrimming.
Declaration
public void ResetTextTrimming()
ResetTextWrapping()
Resets TextWrapping.
Declaration
public void ResetTextWrapping()
ResetTimeSpanEdit()
Resets TimeSpanEdit property.
Declaration
public void ResetTimeSpanEdit()
ResetToolTip()
Resets ToolTip.
Declaration
public void ResetToolTip()
ResetTooltipTemplate()
Resets TooltipTemplateKey.
Declaration
public void ResetTooltipTemplate()
ResetTooltipTemplateKey()
Resets TooltipTemplateKey.
Declaration
public void ResetTooltipTemplateKey()
ResetUpDownEdit()
Resets UpDownEdit.
Declaration
public void ResetUpDownEdit()
ResetUseThemes()
Resets IsThemed property.
Declaration
public void ResetUseThemes()
ResetValueMember()
Resets ValueMember.
Declaration
public void ResetValueMember()
ResetVerticalAlignment()
Resets VerticalAlignment.
Declaration
public void ResetVerticalAlignment()
ShouldSerializeCurrencyEdit()
Determines whether the CurrencyEdit property is serializable.
Declaration
public bool ShouldSerializeCurrencyEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeDataValidationTooltip()
Shoulds the serialize data validation tooltip.
Declaration
public bool ShouldSerializeDataValidationTooltip()
Returns
Type |
---|
System.Boolean |
ShouldSerializeDataValidationTooltipLocation()
Shoulds the serialize data validation tooltip location.
Declaration
public bool ShouldSerializeDataValidationTooltipLocation()
Returns
Type |
---|
System.Boolean |
ShouldSerializeDataValidationTooltipTemplateKey()
Shoulds the serialize data validation tooltip template key.
Declaration
public bool ShouldSerializeDataValidationTooltipTemplateKey()
Returns
Type |
---|
System.Boolean |
ShouldSerializeDateTimeEdit()
Determines whether the DateTimeEdit property is serializable.
Declaration
public bool ShouldSerializeDateTimeEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeDropdownEdit()
Determines whether the DropdownEdit property is serializable.
Declaration
public bool ShouldSerializeDropdownEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeDropDownStyle()
Determines whether DropDownStyle is serializable.
Declaration
public bool ShouldSerializeDropDownStyle()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeErrorAlartTitle()
Declaration
public bool ShouldSerializeErrorAlartTitle()
Returns
Type |
---|
System.Boolean |
ShouldSerializeErrorAlertText()
Declaration
public bool ShouldSerializeErrorAlertText()
Returns
Type |
---|
System.Boolean |
ShouldSerializeErrorAlertTitle()
Shoulds the serialize error alert title.
Declaration
public bool ShouldSerializeErrorAlertTitle()
Returns
Type |
---|
System.Boolean |
ShouldSerializeMaskEditInfo()
Determines whether the MaskEdit property is serializable.
Declaration
public bool ShouldSerializeMaskEditInfo()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeNegativeForeground()
Determines whether the NegativeForeground property is serializable.
Declaration
public bool ShouldSerializeNegativeForeground()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeNumberFormat()
Determines whether the NumberFormat property is serializable.
Declaration
public bool ShouldSerializeNumberFormat()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializePercentEdit()
Determines whether the CurrencyEdit property is serializable.
Declaration
public bool ShouldSerializePercentEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializePercentEditMode()
Determines whether the PercentEditMode property is serializable.
Declaration
public bool ShouldSerializePercentEditMode()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeShowDataValidationTooltip()
Shoulds the serialize show data validation tooltip.
Declaration
public bool ShouldSerializeShowDataValidationTooltip()
Returns
Type |
---|
System.Boolean |
ShouldSerializeShowDropDownHeaders()
Declaration
public bool ShouldSerializeShowDropDownHeaders()
Returns
Type |
---|
System.Boolean |
ShouldSerializeStaysOpenOnEdit()
Determines whether StaysOpenOnEdit is serializable.
Declaration
public bool ShouldSerializeStaysOpenOnEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeTimeSpanEdit()
Determines whether the TimeSpanEdit property is serializable.
Declaration
public bool ShouldSerializeTimeSpanEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
ShouldSerializeUpDownEdit()
Determines whether UpDownEdit is serializable.
Declaration
public bool ShouldSerializeUpDownEdit()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable; False otherwise. |
Explicit Interface Implementations
IRenderCellInfo.CanCombineCellBackground(IRenderCellInfo)
Declaration
bool IRenderCellInfo.CanCombineCellBackground(IRenderCellInfo other)
Parameters
Type | Name | Description |
---|---|---|
IRenderCellInfo | other |
Returns
Type |
---|
System.Boolean |
IRenderCellInfo.CanCombineCellBorder(CellBorderSide, IRenderCellInfo)
Declaration
bool IRenderCellInfo.CanCombineCellBorder(CellBorderSide side, IRenderCellInfo other)
Parameters
Type | Name | Description |
---|---|---|
CellBorderSide | side | |
IRenderCellInfo | other |
Returns
Type |
---|
System.Boolean |
IRenderCellInfo.GetBorderMargins()
Declaration
Thickness IRenderCellInfo.GetBorderMargins()
Returns
Type |
---|
System.Windows.Thickness |
IRenderCellInfo.GetCellBackground()
Declaration
object IRenderCellInfo.GetCellBackground()
Returns
Type |
---|
System.Object |
IRenderCellInfo.GetCellBorder(CellBorderSide)
Declaration
object IRenderCellInfo.GetCellBorder(CellBorderSide side)
Parameters
Type | Name | Description |
---|---|---|
CellBorderSide | side |
Returns
Type |
---|
System.Object |
IRenderCellInfo.GetPadding()
Declaration
Thickness IRenderCellInfo.GetPadding()
Returns
Type |
---|
System.Windows.Thickness |