1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 7e74ae8683 Added System::Type
Added TypeInfo for all relevant types
Added comments
Updated DependencyProperty to work with System::Type
Fixed casing on PropertyMetadata
2013-07-12 21:30:13 +02:00

54 lines
1.3 KiB
C++

/*****************************************************************************
* TextBox.h *
* *
* System::Windows::Controls::TextBox definition file *
* Copyright (c) XFX Team. All rights reserved *
*****************************************************************************/
#ifndef _SYSTEM_WINDOWS_CONTROLS_TEXTBOX_
#define _SYSTEM_WINDOWS_CONTROLS_TEXTBOX_
#include <System/Windows/Controls/Control.h>
#include <System/String.h>
namespace System
{
namespace Windows
{
namespace Controls
{
class TextBox : public Control
{
private:
int selectionLength;
int selectionStart;
String _text;
public:
/**
* Gets a value that determines if the user can change the text in the text box.
*/
bool getIsReadOnly() const;
/**
* Sets a value that determines if the user can change the text in the text box.
*/
void setIsReadOnly(const bool value);
static const DependencyProperty<bool> IsReadOnlyProperty;
String getSelectedText() const;
String getText() const;
void setText(const String& value);
TextBox();
static const Type& GetType();
void Select(const int start, const int length);
void SelectAll();
const String ToString() const;
};
}
}
}
#endif //_SYSTEM_WINDOWS_CONTROLS_TEXTBOX_