StringsControl Interface Reference

This is the base class of all controls that contains an set of strings. More...

Inheritance diagram for StringsControl:

Inheritance graph
Collaboration diagram for StringsControl:

Collaboration graph
List of all members.

Public Member Functions

 Add ([in] BSTR Item,[out, retval] LONG *pItemIndex)
 Use this method to add a string to the control.
 Remove ([in] LONG Index)
 Call this method to remove one string from the control.
 Insert ([in] LONG Index,[in] BSTR Item,[out, retval] LONG *pItemIndex)
 Use this method to insert a string to the control.
 Clear (void)
 Removes all of the strings from the control.
 BeginUpdate ()
 Enables Update mode.
 EndUpdate ()
 Disables Update mode.
 ExChange ([in] LONG A,[in] LONG B)
 Swaps the position of two strings in the control.
 Sort ([in, defaultvalue(DT_STRING)] LONG DataType,[in, defaultvalue(FALSE)] VARIANT_BOOL Reverse)
 This method sorts the strings.
 Find ([in] BSTR Text,[in, defaultvalue(0)] LONG Start,[in, defaultvalue(TRUE)] VARIANT_BOOL IgnoreCase,[out, retval] LONG *pItemIndex)
 Searches for text in the control.

Properties

LONG RW TopIndex []
 The system scrolls the control contents so, that the specified by TopIndex item appears at the top of the control.
LPUNKNOWN R _NewEnum []
 Returns the enumerator for the strings collection.
BSTR RW Item [[in] long Index] []
 Returns the specified string from the control.
long R Count []
 Returns the number of strings in the control.

Detailed Description

This is the base class of all controls that contains an set of strings.


Member Function Documentation

Add ( [in] BSTR  Item,
[out, retval] LONG *  pItemIndex 
)

Use this method to add a string to the control.

Parameters:
Item The string to be added
Return values:
pItemIndex The index of the added string

BeginUpdate (  ) 

Enables Update mode.

This method prevents updating of the control until the EndUpdate method is called.

Clear ( void   ) 

Removes all of the strings from the control.

EndUpdate (  ) 

Disables Update mode.

ExChange ( [in] LONG  A,
[in] LONG  B 
)

Swaps the position of two strings in the control.

Parameters:
A The index of the first string.
B The index of the second string.

Find ( [in] BSTR  Text,
[in, defaultvalue(0)] LONG  Start,
[in, defaultvalue(TRUE)] VARIANT_BOOL  IgnoreCase,
[out, retval] LONG *  pItemIndex 
)

Searches for text in the control.

Parameters:
Text The text for searching
Start The start position
IgnoreCase The ignore case flag
Return values:
pItemIndex The result

Insert ( [in] LONG  Index,
[in] BSTR  Item,
[out, retval] LONG *  pItemIndex 
)

Use this method to insert a string to the control.

Parameters:
Index Zero-based index of the position for string insertion
Item The string to be inserted
Return values:
pItemIndex The index of the inserted string

Remove ( [in] LONG  Index  ) 

Call this method to remove one string from the control.

Parameters:
Index The index of the string to remove.

Sort ( [in, defaultvalue(DT_STRING)] LONG  DataType,
[in, defaultvalue(FALSE)] VARIANT_BOOL  Reverse 
)

This method sorts the strings.

See also Data types.

Parameters:
DataType The data type.
Reverse Enables reverse sorting.


Property Documentation

LPUNKNOWN R _NewEnum

Returns the enumerator for the strings collection.

long R Count

Returns the number of strings in the control.

BSTR RW Item[[in] long Index] (  ) 

Returns the specified string from the control.

LONG RW TopIndex

The system scrolls the control contents so, that the specified by TopIndex item appears at the top of the control.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:13:14 2015. (C) Veretennikov A. B. 2004-2015