Show / Hide Table of Contents

Class SoListItem

Default ListProvider item

Inheritance
Object
SoListItem
MenuListItem
SelectableListItem
SoListItemDeep
Implements
ISoListItem
IComparable<ISoListItem>
IComparable
Namespace: SuperOffice.CRM.Lists
Assembly: SoCore.dll
Syntax
public class SoListItem : Object, ISoListItem, IComparable<ISoListItem>, IComparable

Constructors

SoListItem()

Default constructor

Declaration
public SoListItem()

SoListItem(ISoListItem)

'Copy' constructor to make a deep copy of a list item.

Declaration
public SoListItem(ISoListItem item)
Parameters
Type Name Description
ISoListItem item

SoListItem(Int32, String, String, Int16, Boolean, String, Int32, String, String, String, String)

Default constructor

Declaration
public SoListItem(int Id, string Name, string Tooltip, short Rank, bool Deleted, string Type, int Color, string IconHint, string StyleHint, string ExtraInfo, string FullName = "")
Parameters
Type Name Description
Int32 Id

Primary key

String Name

Visible item name

String Tooltip

Visible item tooltip

Int16 Rank

Item rank (lowest first in sort order)

Boolean Deleted

Deleted flag (deleted if true)

String Type

Item type, interpretation depends on list

Int32 Color

Item color

String IconHint

Suggested item icon

String StyleHint
String ExtraInfo
String FullName

SoListItem(Int32, String, String, String)

Simplified constructor, where everything except id, name and tooltip defaults to empty. The rank is set the same as the ID, and deleted is set to false.

Declaration
public SoListItem(int Id, string Name, string Tooltip, string ExtraInfo)
Parameters
Type Name Description
Int32 Id

Primary key

String Name

Visible item name

String Tooltip

Visible item tooltip

String ExtraInfo

Properties

Color

Default ListProvider item

Declaration
public int Color { get; set; }
Property Value
Type Description
Int32

Deleted

Default ListProvider item

Declaration
public bool Deleted { get; set; }
Property Value
Type Description
Boolean

ExtraInfo

Default ListProvider item

Declaration
public string ExtraInfo { get; set; }
Property Value
Type Description
String

FullName

Default ListProvider item

Declaration
public string FullName { get; set; }
Property Value
Type Description
String

IconHint

Default ListProvider item

Declaration
public string IconHint { get; set; }
Property Value
Type Description
String

Id

Default ListProvider item

Declaration
public int Id { get; set; }
Property Value
Type Description
Int32

Name

Default ListProvider item

Declaration
public string Name { get; set; }
Property Value
Type Description
String

Rank

Default ListProvider item

Declaration
public short Rank { get; set; }
Property Value
Type Description
Int16

StyleHint

Default ListProvider item

Declaration
public string StyleHint { get; set; }
Property Value
Type Description
String

Tooltip

Default ListProvider item

Declaration
public string Tooltip { get; set; }
Property Value
Type Description
String

Type

Default ListProvider item

Declaration
public string Type { get; set; }
Property Value
Type Description
String

Methods

CompareTo(ISoListItem)

Compare the rank of this item to the rank of another item.

Declaration
public int CompareTo(ISoListItem other)
Parameters
Type Name Description
ISoListItem other

Item to compare Rank with.

Returns
Type Description
Int32

Rank compared to other's rank.

GetHashCode()

Default ListProvider item

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

ToString()

Default ListProvider item

Declaration
public override string ToString()
Returns
Type Description
String

Implements

ISoListItem
System.IComparable<T>
System.IComparable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top