本文整理汇总了C#中TextEdit.SelectAll方法的典型用法代码示例。如果您正苦于以下问题:C# TextEdit.SelectAll方法的具体用法?C# TextEdit.SelectAll怎么用?C# TextEdit.SelectAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextEdit
的用法示例。
在下文中一共展示了TextEdit.SelectAll方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextControlNotNull
public static void TextControlNotNull(TextEdit textEdit, string title)
{
textEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red;
MessageBox.Show(string.Format("{0} không được để trống!", title), Resources.MessageBoxErrorMessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
textEdit.Focus();
textEdit.SelectAll();
}
示例2: SetColorErrorTextControl
public static void SetColorErrorTextControl(TextEdit textEdit, string title)
{
textEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red;
textEdit.Focus();
textEdit.SelectAll();
MessageBox.Show(title, Resources.MessageBoxErrorMessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
示例3: EditTextErrorMessage
public static void EditTextErrorMessage(TextEdit textEdit, string title)
{
textEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red;
MessageBox.Show(string.Format("Error! {0}", title), Resources.MessageBoxErrorMessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
textEdit.Focus();
textEdit.SelectAll();
}
示例4: ValidationTextEditNullValueMessage
public static bool ValidationTextEditNullValueMessage(TextEdit textEdit, string messageTitle)
{
if (string.IsNullOrEmpty(textEdit.Text))
{
textEdit.Properties.Appearance.BorderColor = Color.Red;
textEdit.Focus();
textEdit.SelectAll();
return false;
}
return true;
}
示例5: EditTextErrorNoMessage
public static void EditTextErrorNoMessage(TextEdit textEdit)
{
textEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red;
textEdit.Focus();
textEdit.SelectAll();
}
示例6: SetColorErrorTextControl
/// <summary>
///
/// </summary>
/// <param name="textEdit"></param>
public static void SetColorErrorTextControl(TextEdit textEdit)
{
textEdit.Properties.Appearance.BorderColor = Color.Red;
textEdit.Focus();
textEdit.SelectAll();
}