C# Class Stride.UI.Controls.EditText

Afficher le fichier Open project: vvvv/stride

Méthodes publiques

Свойство Type Description
TextChangedEvent RoutedEvent

Private Properties

Свойство Type Description
EditText System
SetTextInternal void
TextChangedClassHandler void
UpdateTextToDisplay void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
EditText ( ) : System
SetTextInternal ( string newText, bool updateNativeEdit ) : void
TextChangedClassHandler ( object sender, RoutedEventArgs e ) : void
UpdateTextToDisplay ( ) : void

Method Details

AppendText() public méthode

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.
Résultat void

ArrangeOverride() protected méthode

protected ArrangeOverride ( Vector3 finalSizeWithoutMargins ) : Vector3
finalSizeWithoutMargins Vector3
Résultat Vector3

CalculateTextSize() public méthode

Calculate and returns the size of the Text in virtual pixels size.
public CalculateTextSize ( ) : Vector2
Résultat Vector2

CalculateTextSize() protected méthode

Calculate and returns the size of the provided textToMeasure"/> in virtual pixels size.
protected CalculateTextSize ( string textToMeasure ) : Vector2
textToMeasure string The text to measure
Résultat Vector2

Clear() public méthode

Clears all the content from the text box.
public Clear ( ) : void
Résultat void

MeasureOverride() protected méthode

protected MeasureOverride ( Vector3 availableSizeWithoutMargins ) : Vector3
availableSizeWithoutMargins Vector3
Résultat Vector3

OnIsReadOnlyChanged() protected méthode

Function triggered when the value of IsReadOnly changed.
protected OnIsReadOnlyChanged ( ) : void
Résultat void

OnMaxLengthChanged() protected méthode

Function triggered when the value of MaxLength changed.
protected OnMaxLengthChanged ( ) : void
Résultat void

OnMaxLinesChanged() protected méthode

Function triggered when the value of MaxLines changed.
protected OnMaxLinesChanged ( ) : void
Résultat void

OnMinLinesChanged() protected méthode

Function triggered when the value of MinLines changed.
protected OnMinLinesChanged ( ) : void
Résultat void

OnTextChanged() protected méthode

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
Résultat void

OnTouchDown() protected méthode

protected OnTouchDown ( TouchEventArgs args ) : void
args TouchEventArgs
Résultat void

OnTouchLeave() protected méthode

protected OnTouchLeave ( TouchEventArgs args ) : void
args TouchEventArgs
Résultat void

OnTouchMove() protected méthode

protected OnTouchMove ( TouchEventArgs args ) : void
args TouchEventArgs
Résultat void

OnTouchUp() protected méthode

protected OnTouchUp ( TouchEventArgs args ) : void
args TouchEventArgs
Résultat void

ResetCaretBlinking() public méthode

Reset the caret blinking to initial state (visible).
public ResetCaretBlinking ( ) : void
Résultat void

Select() public méthode

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
Résultat void

SelectAll() public méthode

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
Résultat void

Update() protected méthode

protected Update ( GameTime time ) : void
time GameTime
Résultat void

Property Details

TextChangedEvent public_oe static_oe property

Identifies the TextChanged routed event.
public static RoutedEvent TextChangedEvent
Résultat RoutedEvent