C# 클래스 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.

상속: Object, IComparable
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oObject Object
m_sText String

공개 메소드들

메소드 설명
CompareTo ( Object oOtherObject ) : Int32
ObjectWithText ( Object oObject, String sText ) : System

Initializes a new instance of the ObjectWithText class.

ToString ( ) : String

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

CompareTo() 공개 메소드

public CompareTo ( Object oOtherObject ) : Int32
oOtherObject Object
리턴 System.Int32

ObjectWithText() 공개 메소드

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. ///
리턴 System

ToString() 공개 메소드

public ToString ( ) : String
리턴 String

프로퍼티 상세

m_oObject 보호되어 있는 프로퍼티

protected Object m_oObject
리턴 Object

m_sText 보호되어 있는 프로퍼티

protected String m_sText
리턴 String