Class GridPropertyTypeDefaultStyleCollection
A collection of GridPropertyTypeDefaultStyle with default GridTableCellStyleInfo information for RecordFieldCell elements based on the column's System.Type. Each basic type has default style information registered with this collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridPropertyTypeDefaultStyleCollection : IDisposable, IList, ICollection, IEnumerable, IInsideCollectionEditorProperty, ICloneable
Remarks
The collection contains pre-defined settings such as HorizontalAlignment for numbers and cell type (e.g. CheckBox for boolean).
GridPropertyTypeDefaultStyle settings have less precedence in styles inheritance than Appearance styles.
Note: Changes you make to this collection do not get serialized, you will need to reapply any changes even if you read back the schema from an XML file.
Constructors
GridPropertyTypeDefaultStyleCollection()
Initializes an empty collection
Declaration
public GridPropertyTypeDefaultStyleCollection()
Fields
Empty
Used internally.
Declaration
public static readonly GridPropertyTypeDefaultStyleCollection Empty
Field Value
Type |
---|
GridPropertyTypeDefaultStyleCollection |
Properties
Count
The number of elements in this collection.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Default
The default collection
Declaration
public static GridPropertyTypeDefaultStyleCollection Default { get; }
Property Value
Type |
---|
GridPropertyTypeDefaultStyleCollection |
InsideCollectionEditor
Internal only.
Declaration
public bool InsideCollectionEditor { get; set; }
Property Value
Type |
---|
System.Boolean |
IsDefault
Internal only.
Declaration
public bool IsDefault { get; }
Property Value
Type |
---|
System.Boolean |
IsFixedSize
Returns False.
Declaration
public bool IsFixedSize { get; }
Property Value
Type |
---|
System.Boolean |
IsModified
Internal only.
Declaration
public bool IsModified { get; }
Property Value
Type |
---|
System.Boolean |
IsReadOnly
Returns False.
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
IsSynchronized
Returns False.
Declaration
public bool IsSynchronized { get; }
Property Value
Type |
---|
System.Boolean |
Item[Int32]
Gets or sets the element at an index
Declaration
public GridPropertyTypeDefaultStyle this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
GridPropertyTypeDefaultStyle |
Item[String]
Gets or sets the element with the specified name.
Declaration
public GridPropertyTypeDefaultStyle this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type |
---|
GridPropertyTypeDefaultStyle |
Version
Internal only.
Declaration
public int Version { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Add(GridPropertyTypeDefaultStyle)
Adds a new element
Declaration
public int Add(GridPropertyTypeDefaultStyle value)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyle | value | Value to add. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the new value. |
Add(String)
Adds a new element.
Declaration
public int Add(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Element name. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the new element. |
AddRange(GridPropertyTypeDefaultStyle[])
Adds multiple elements.
Declaration
public void AddRange(GridPropertyTypeDefaultStyle[] propertyTypeDefaultStyles)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyle[] | propertyTypeDefaultStyles | An array of elements to add. |
Clear()
Clears the collection
Declaration
public void Clear()
Clone()
Creates a copy of this collection.
Declaration
public GridPropertyTypeDefaultStyleCollection Clone()
Returns
Type | Description |
---|---|
GridPropertyTypeDefaultStyleCollection | Copied object. |
Contains(GridPropertyTypeDefaultStyle)
Checks if the group belongs to the details section and is visible.
Declaration
public bool Contains(GridPropertyTypeDefaultStyle value)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyle | value | The given group. |
Returns
Type | Description |
---|---|
System.Boolean | True if it belongs to the details section and is visible. |
Contains(String)
Checks if collection contains element.
Declaration
public bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Element name to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if it contains. |
CopyTo(GridPropertyTypeDefaultStyle[], Int32)
Copies the elements to an array
Declaration
public void CopyTo(GridPropertyTypeDefaultStyle[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyle[] | array | The Array of GridPropertyTypeDefaultStyle. |
System.Int32 | index | Index to copy. |
Dispose()
Disposes the collection.
Declaration
public void Dispose()
EnsureInitialized(Boolean)
Used internally.
Declaration
protected virtual void EnsureInitialized(bool populate)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | populate |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetEnumerator()
Internal only.
Declaration
public GridPropertyTypeDefaultStyleCollectionEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
GridPropertyTypeDefaultStyleCollectionEnumerator | The GridPropertyTypeDefaultStyleCollectionEnumerator |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Overrides
IndexOf(GridPropertyTypeDefaultStyle)
Gets the index of the occurence of an GridPropertyTypeDefaultStyle from the GridPropertyTypeDefaultStyleCollection.
Declaration
public int IndexOf(GridPropertyTypeDefaultStyle value)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyle | value | The GridPropertyTypeDefaultStyle. |
Returns
Type | Description |
---|---|
System.Int32 | The Index of the GridPropertyTypeDefaultStyle. |
IndexOf(String)
Gets the index of the occurence of an element.
Declaration
public int IndexOf(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Element name. |
Returns
Type | Description |
---|---|
System.Int32 | returns the Index of the element. |
InitializeFrom(GridPropertyTypeDefaultStyleCollection)
Initializes collection from another collection
Declaration
public void InitializeFrom(GridPropertyTypeDefaultStyleCollection other)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyleCollection | other | The source object. |
Insert(Int32, GridPropertyTypeDefaultStyle)
Inserts an element
Declaration
public void Insert(int index, GridPropertyTypeDefaultStyle value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The Index. |
GridPropertyTypeDefaultStyle | value | Value to insert. |
OnChanged(ListPropertyChangedEventArgs)
Raises the Changed event.
Declaration
protected virtual void OnChanged(ListPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
ListPropertyChangedEventArgs | e | A ListPropertyChangedEventArgs that contains the event data. |
OnChanging(ListPropertyChangedEventArgs)
Raises the Changed event.
Declaration
protected virtual void OnChanging(ListPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
ListPropertyChangedEventArgs | e | A ListPropertyChangedEventArgs that contains the event data. |
Remove(GridPropertyTypeDefaultStyle)
Removes an element
Declaration
public void Remove(GridPropertyTypeDefaultStyle value)
Parameters
Type | Name | Description |
---|---|---|
GridPropertyTypeDefaultStyle | value | Value to remove. |
Remove(String)
Removes an element.
Declaration
public void Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the element to be removed. |
RemoveAt(Int32)
Removes an element.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the element to be removed. |
Reset()
Reset and initialize with default settings.
Declaration
public void Reset()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
Events
Changed
Internal only.
Declaration
public event ListPropertyChangedEventHandler Changed
Event Type
Type |
---|
ListPropertyChangedEventHandler |
Changing
Internal only.
Declaration
public event ListPropertyChangedEventHandler Changing
Event Type
Type |
---|
ListPropertyChangedEventHandler |
Explicit Interface Implementations
IInsideCollectionEditorProperty.InitializeFrom(Object)
Declaration
void IInsideCollectionEditorProperty.InitializeFrom(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other |
ICollection.CopyTo(Array, Int32)
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | |
System.Int32 | index |
ICollection.SyncRoot
Declaration
object ICollection.SyncRoot { get; }
Returns
Type |
---|
System.Object |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
---|
System.Collections.IEnumerator |
IList.Add(Object)
Declaration
int IList.Add(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type |
---|
System.Int32 |
IList.Contains(Object)
Declaration
bool IList.Contains(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type |
---|
System.Boolean |
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type |
---|
System.Object |
IList.IndexOf(Object)
Declaration
int IList.IndexOf(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type |
---|
System.Int32 |
IList.Insert(Int32, Object)
Declaration
void IList.Insert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
IList.Item[Int32]
Declaration
object IList.this[] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type |
---|
System.Object |
IList.Remove(Object)
Declaration
void IList.Remove(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
Type |
---|
System.Object |