C# Класс Stride.UI.Controls.EditText

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
TextChangedEvent RoutedEvent

Private Properties

Свойство Тип Описание
EditText System
SetTextInternal void
TextChangedClassHandler void
UpdateTextToDisplay void

Открытые методы

Метод Описание
AppendText ( string textData ) : void

Appends a string to the contents of a text control.

CalculateTextSize ( ) : Vector2

Calculate and returns the size of the Text in virtual pixels size.

Clear ( ) : void

Clears all the content from the text box.

ResetCaretBlinking ( ) : void

Reset the caret blinking to initial state (visible).

Select ( int start, int length, bool caretAtBeginning = false ) : void

Selects a range of text in the text box.

If the value of start is too big the caret is positioned at the end of the current text. If the value of length is too big the selection is extended to the end current text.

SelectAll ( bool caretAtBeginning = false ) : void

Selects all the contents of the text editing control.

Защищенные методы

Метод Описание
ArrangeOverride ( Vector3 finalSizeWithoutMargins ) : Vector3
CalculateTextSize ( string textToMeasure ) : Vector2

Calculate and returns the size of the provided textToMeasure"/> in virtual pixels size.

MeasureOverride ( Vector3 availableSizeWithoutMargins ) : Vector3
OnIsReadOnlyChanged ( ) : void

Function triggered when the value of IsReadOnly changed.

OnMaxLengthChanged ( ) : void

Function triggered when the value of MaxLength changed.

OnMaxLinesChanged ( ) : void

Function triggered when the value of MaxLines changed.

OnMinLinesChanged ( ) : void

Function triggered when the value of MinLines changed.

OnTextChanged ( RoutedEventArgs args ) : void

The class handler of the event TextChanged. This method can be overridden in inherited classes to perform actions common to all instances of a class.

OnTouchDown ( TouchEventArgs args ) : void
OnTouchLeave ( TouchEventArgs args ) : void
OnTouchMove ( TouchEventArgs args ) : void
OnTouchUp ( TouchEventArgs args ) : void
Update ( GameTime time ) : void

Приватные методы

Метод Описание
EditText ( ) : System
SetTextInternal ( string newText, bool updateNativeEdit ) : void
TextChangedClassHandler ( object sender, RoutedEventArgs e ) : void
UpdateTextToDisplay ( ) : void

Описание методов

AppendText() публичный Метод

Appends a string to the contents of a text control.
public AppendText ( string textData ) : void
textData string A string that specifies the text to append to the current contents of the text control.
Результат void

ArrangeOverride() защищенный Метод

protected ArrangeOverride ( Vector3 finalSizeWithoutMargins ) : Vector3
finalSizeWithoutMargins Vector3
Результат Vector3

CalculateTextSize() публичный Метод

Calculate and returns the size of the Text in virtual pixels size.
public CalculateTextSize ( ) : Vector2
Результат Vector2

CalculateTextSize() защищенный Метод

Calculate and returns the size of the provided textToMeasure"/> in virtual pixels size.
protected CalculateTextSize ( string textToMeasure ) : Vector2
textToMeasure string The text to measure
Результат Vector2

Clear() публичный Метод

Clears all the content from the text box.
public Clear ( ) : void
Результат void

MeasureOverride() защищенный Метод

protected MeasureOverride ( Vector3 availableSizeWithoutMargins ) : Vector3
availableSizeWithoutMargins Vector3
Результат Vector3

OnIsReadOnlyChanged() защищенный Метод

Function triggered when the value of IsReadOnly changed.
protected OnIsReadOnlyChanged ( ) : void
Результат void

OnMaxLengthChanged() защищенный Метод

Function triggered when the value of MaxLength changed.
protected OnMaxLengthChanged ( ) : void
Результат void

OnMaxLinesChanged() защищенный Метод

Function triggered when the value of MaxLines changed.
protected OnMaxLinesChanged ( ) : void
Результат void

OnMinLinesChanged() защищенный Метод

Function triggered when the value of MinLines changed.
protected OnMinLinesChanged ( ) : void
Результат void

OnTextChanged() защищенный Метод

The class handler of the event TextChanged. This method can be overridden in inherited classes to perform actions common to all instances of a class.
protected OnTextChanged ( RoutedEventArgs args ) : void
args RoutedEventArgs The arguments of the event
Результат void

OnTouchDown() защищенный Метод

protected OnTouchDown ( TouchEventArgs args ) : void
args TouchEventArgs
Результат void

OnTouchLeave() защищенный Метод

protected OnTouchLeave ( TouchEventArgs args ) : void
args TouchEventArgs
Результат void

OnTouchMove() защищенный Метод

protected OnTouchMove ( TouchEventArgs args ) : void
args TouchEventArgs
Результат void

OnTouchUp() защищенный Метод

protected OnTouchUp ( TouchEventArgs args ) : void
args TouchEventArgs
Результат void

ResetCaretBlinking() публичный Метод

Reset the caret blinking to initial state (visible).
public ResetCaretBlinking ( ) : void
Результат void

Select() публичный Метод

Selects a range of text in the text box.
If the value of start is too big the caret is positioned at the end of the current text. If the value of length is too big the selection is extended to the end current text.
public Select ( int start, int length, bool caretAtBeginning = false ) : void
start int The zero-based character index of the first character in the selection.
length int The length of the selection, in characters.
caretAtBeginning bool Indicate if the caret should be at the beginning or the end of the selection
Результат void

SelectAll() публичный Метод

Selects all the contents of the text editing control.
public SelectAll ( bool caretAtBeginning = false ) : void
caretAtBeginning bool Indicate if the caret should be at the beginning or the end of the selection
Результат void

Update() защищенный Метод

protected Update ( GameTime time ) : void
time GameTime
Результат void

Описание свойств

TextChangedEvent публичное статическое свойство

Identifies the TextChanged routed event.
public static RoutedEvent TextChangedEvent
Результат RoutedEvent