Class ListViewItemStyleInfo
Represents the functionalities that holds all information stored for a items.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.ListView.Styles
Assembly: Syncfusion.SfListView.WinForms.dll
Syntax
public class ListViewItemStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
ListViewItemStyleInfo()
Initializes a new instance of the ListViewItemStyleInfo class.
Declaration
public ListViewItemStyleInfo()
ListViewItemStyleInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the ListViewItemStyleInfo class.
Declaration
public ListViewItemStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
ListViewItemStyleInfo(StyleInfoSubObjectIdentity, ListViewItemStyleInfoStore)
Initializes a new instance of the ListViewItemStyleInfo class.
Declaration
public ListViewItemStyleInfo(StyleInfoSubObjectIdentity identity, ListViewItemStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
ListViewItemStyleInfoStore | store | A |
ListViewItemStyleInfo(ListViewItemStyleInfo)
Initializes a new instance of the ListViewItemStyleInfo class.
Declaration
public ListViewItemStyleInfo(ListViewItemStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
ListViewItemStyleInfo | style | The style object that contains the original data. |
ListViewItemStyleInfo(ListViewItemStyleInfoStore)
Initializes a new instance of the ListViewItemStyleInfo class.
Declaration
public ListViewItemStyleInfo(ListViewItemStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
ListViewItemStyleInfoStore | store | A |
Properties
BackColor
Gets or sets a value indicating whether the BackColor of a item instead of using ListViewItemStyleInfo.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Default
Gets a ListViewItemStyleInfo with default settings.
Declaration
public static ListViewItemStyleInfo Default { get; }
Property Value
Type |
---|
ListViewItemStyleInfo |
Font
Gets or sets the font for drawing text.
Declaration
public Font Font { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
ForeColor
Gets or sets the color for drawing the item text.
Declaration
public Color ForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Store
Gets the
Declaration
public ListViewItemStyleInfoStore Store { get; }
Property Value
Type |
---|
ListViewItemStyleInfoStore |
TextAlignment
Gets or sets alignment of text in the item.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
Type |
---|
System.Drawing.ContentAlignment |
Methods
CreateSubObjectIdentity(StyleInfoProperty)
Overridden to create a product-specific identity object for the sub object.
Declaration
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip | StyleInfoProperty descriptor for this sub object. |
Returns
Type | Description |
---|---|
StyleInfoSubObjectIdentity | Identity for the sub object. |
Overrides
GetDefaultStyle()
Override this method to return a default style object for your derived class.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | A default style object. |
Overrides
MakeCopy(StyleInfoBase, StyleInfoProperty)
Makes an exact copy of the current object.
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | newOwner | The new owner style object for the copied object. |
StyleInfoProperty | sip | The identifier for this object. |
Returns
Type | Description |
---|---|
IStyleInfoSubObject | A copy of the current object registered with the new owner style object. |