C# Class Smrf.AppLib.ObjectWithText

Stores an object along with text that describes the object.
ToString is overridden to return the text.

This object can be used to populate a ListBox or ComboBox with arbitrary objects. See ComboBoxPlus.PopulateWithObjectsAndText.

Inheritance: Object, IComparable
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_oObject Object
m_sText String

Méthodes publiques

Méthode Description
CompareTo ( Object oOtherObject ) : Int32
ObjectWithText ( Object oObject, String sText ) : System

Initializes a new instance of the ObjectWithText class.

ToString ( ) : String

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

CompareTo() public méthode

public CompareTo ( Object oOtherObject ) : Int32
oOtherObject Object
Résultat System.Int32

ObjectWithText() public méthode

Initializes a new instance of the ObjectWithText class.
public ObjectWithText ( Object oObject, String sText ) : System
oObject Object /// An arbitrary object, or null. ///
sText String /// Text describing the object. ///
Résultat System

ToString() public méthode

public ToString ( ) : String
Résultat String

Property Details

m_oObject protected_oe property

protected Object m_oObject
Résultat Object

m_sText protected_oe property

protected String m_sText
Résultat String