//-----------------------------------------------------------------------------
// wx.NET - IControlWithItems.cs
//
// The ControlWithItems Interface.
//
// Written by Alexander Olk (xenomorph2@onlinehome.de)
// (C) 2004 Alexander Olk
// Licensed under the wxWidgets license, see LICENSE.txt for details.
//
// $Id: IControlWithItems.cs,v 1.2 2006/09/23 15:52:36 stahta01 Exp $
//-----------------------------------------------------------------------------
namespace wx{
public interface IControlWithItems
{
int Append(string item);
int Append(string item, ClientData clientData);
//-----------------------------------------------------------------------------
void AppendString(string item);
//-----------------------------------------------------------------------------
void Append(string[] strings);
//-----------------------------------------------------------------------------
int Insert(string item, int pos);
int Insert(string item, int pos, ClientData clientData);
//-----------------------------------------------------------------------------
void Clear();
//-----------------------------------------------------------------------------
void Delete(int n);
//-----------------------------------------------------------------------------
int Count { get; }
//-----------------------------------------------------------------------------
bool Empty { get; }
//-----------------------------------------------------------------------------
string GetString(int n);
//-----------------------------------------------------------------------------
string[] GetStrings();
//-----------------------------------------------------------------------------
void SetString(int n, string s);
//-----------------------------------------------------------------------------
int FindString(string s);
//-----------------------------------------------------------------------------
void Select(int n);
int GetSelection();
//-----------------------------------------------------------------------------
string StringSelection { get; }
//-----------------------------------------------------------------------------
void SetClientObject(int n, ClientData clientData);
ClientData GetClientObject(int n);
//-----------------------------------------------------------------------------
bool HasClientObjectData();
//-----------------------------------------------------------------------------
bool HasClientUntypedData();
//-----------------------------------------------------------------------------
bool ShouldInheritColours();
}
}
|