Show / Hide Table of Contents

Class SoListItem

Default ListProvider item

Inheritance
Object
SoListItem
MenuListItem
SelectableListItem
SoListItemDeep
Implements
ISoListItem
IComparable<ISoListItem>
IComparable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Lists
Assembly: SoCore.dll
Syntax
public class SoListItem : 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

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

Deleted

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

ExtraInfo

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

FullName

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

IconHint

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

Id

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

Name

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

Rank

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

StyleHint

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

Tooltip

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

Type

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()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Explicit Interface Implementations

IComparable.CompareTo(Object)

Declaration
int IComparable.CompareTo(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Int32

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 |  Back to top