wx.TextDataObject Class Reference

Inheritance diagram for wx.TextDataObject:

wx.DataObjectSimple wx.DataObject wx.Object

List of all members.

Public Member Functions

 TextDataObject (wxString text)
 TextDataObject (string text)
 TextDataObject ()
 TextDataObject (IntPtr wxObject)

Protected Member Functions

override void CallDTor ()


string Text [get, set]
int TextLength [get]

Detailed Description

wx.TextDataObject is a specialization of wx.DataObject for text data. It can be used without change to paste data into the wx.Clipboard or a wx.DropSource. A user may wish to derive a new class from this class for providing text on-demand in order to minimize memory consumption when offering data in several formats, such as plain text and RTF because by default the text is stored in a string in this class, but it might as well be generated when requested.

Note that if you already have the text inside a string, you will not achieve any efficiency gain by overriding these functions because copying wxStrings is already a very efficient operation (data is not actually copied because wxStrings are reference counted).

Constructor & Destructor Documentation

wx.TextDataObject.TextDataObject ( IntPtr  wxObject  ) 

wx.TextDataObject.TextDataObject (  ) 

wx.TextDataObject.TextDataObject ( string  text  ) 

wx.TextDataObject.TextDataObject ( wxString  text  ) 

Member Function Documentation

override void wx.TextDataObject.CallDTor (  )  [protected, virtual]

This will be called by Dispose() to delete the C++ object. Overload this if you have to use another DTor.

Reimplemented from wx.Object.

Property Documentation

string wx.TextDataObject.Text [get, set]

int wx.TextDataObject.TextLength [get]

Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads