Class MaskEditPropertiesBuilder
Inheritance
System.Object
MaskEditPropertiesBuilder
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class MaskEditPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
MaskEditPropertiesBuilder()
Declaration
public MaskEditPropertiesBuilder()
MaskEditPropertiesBuilder(MaskEdit)
Declaration
public MaskEditPropertiesBuilder(MaskEdit maskEdit)
Parameters
Fields
maskEdit
Declaration
Field Value
Methods
ClientSideEvents(Action<MaskEditClientSideEventsBuilder>)
MaskEdit ClientSideEvents
Declaration
public MaskEditPropertiesBuilder ClientSideEvents(Action<MaskEditClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
CssClass(String)
Specify the cssClass to achieve custom theme with string argument.
Declaration
public MaskEditPropertiesBuilder CssClass(string customCssClass)
Parameters
Type |
Name |
Description |
System.String |
customCssClass |
|
Returns
CustomCharacter(String)
Specify the custom character allowed to entered in mask edit textbox control with string argument.
Declaration
public MaskEditPropertiesBuilder CustomCharacter(string customCharacter)
Parameters
Type |
Name |
Description |
System.String |
customCharacter |
|
Returns
Enabled()
Specify the state of the mask edit textbox control.
Declaration
public MaskEditPropertiesBuilder Enabled()
Returns
Enabled(Boolean)
Specify the state of the mask edit textbox control with boolean argument.
Declaration
public MaskEditPropertiesBuilder Enabled(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Returns
EnablePersistence()
Specify the enablePersistence of mask edit textbox to save current model value in browser cookies for state maintains.
Declaration
public MaskEditPropertiesBuilder EnablePersistence()
Returns
EnablePersistence(Boolean)
Specify the enablePersistence of mask edit textbox to save current model value in browser cookies for state maintains with boolean argument.
Declaration
public MaskEditPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
Error()
Specifies whether the error will show until correct value entered in the mask edit textbox control.
Declaration
public MaskEditPropertiesBuilder Error()
Returns
Height(String)
Specifies the height for the mask edit textbox control with string argument.
Declaration
public MaskEditPropertiesBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
HidePromptOnLeave()
Specifies whether hide the prompt characters with spaces on blur. Prompt chars will be shown again on focus the textbox.
Declaration
public MaskEditPropertiesBuilder HidePromptOnLeave()
Returns
HidePromptOnLeave(Boolean)
Specifies whether hide the prompt characters with spaces on blur. Prompt chars will be shown again on focus the textbox with boolean argument.
Declaration
public MaskEditPropertiesBuilder HidePromptOnLeave(bool hidePromptOnLeave)
Parameters
Type |
Name |
Description |
System.Boolean |
hidePromptOnLeave |
|
Returns
HtmlAttributes(IDictionary<String, Object>)
Specifies the list of html attributes to be added to mask edit textbox with object argument.
Declaration
public MaskEditPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
itemHtmlAttributes |
|
Returns
Specify the inputMode for mask edit textbox control with string argument.
Declaration
public MaskEditPropertiesBuilder InputMode(InputMode inputMode)
Parameters
Returns
Locale(String)
Defines the localization culture for mask edit.
Declaration
public MaskEditPropertiesBuilder Locale(string localize)
Parameters
Type |
Name |
Description |
System.String |
localize |
|
Returns
Specifies the input mask with string argument.
Declaration
public MaskEditPropertiesBuilder MaskFormat(string maskFormat)
Parameters
Type |
Name |
Description |
System.String |
maskFormat |
|
Returns
Name(String)
Specifies the Name attribute of the MaskEdit Textbox
Declaration
public MaskEditPropertiesBuilder Name(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
ReadOnly()
Toggles the readonly state of the mask edit textbox. When the mask edit textbox is readonly, it doesn’t allow your input.
Declaration
public MaskEditPropertiesBuilder ReadOnly()
Returns
ReadOnly(Boolean)
Toggles the readonly state of the mask edit textbox. When the mask edit textbox is readonly, it doesn’t allow your input with boolean argument.
Declaration
public MaskEditPropertiesBuilder ReadOnly(bool readOnly)
Parameters
Type |
Name |
Description |
System.Boolean |
readOnly |
|
Returns
Render()
Declaration
ShowError(Boolean)
Specifies whether the error will show until correct value entered in the mask edit textbox control with boolean argument.
Declaration
public MaskEditPropertiesBuilder ShowError(bool showError)
Parameters
Type |
Name |
Description |
System.Boolean |
showError |
|
Returns
ShowPromptChar()
Declaration
public MaskEditPropertiesBuilder ShowPromptChar()
Returns
ShowPromptChar(Boolean)
Declaration
public MaskEditPropertiesBuilder ShowPromptChar(bool showPromptChar)
Parameters
Type |
Name |
Description |
System.Boolean |
showPromptChar |
|
Returns
ShowRoundedCorner()
MaskEdit input is displayed in rounded corner style when this property is set to true.
Declaration
public MaskEditPropertiesBuilder ShowRoundedCorner()
Returns
ShowRoundedCorner(Boolean)
MaskEdit input is displayed in rounded corner style when this property is set to true with boolean argument.
Declaration
public MaskEditPropertiesBuilder ShowRoundedCorner(bool showRoundedCorner)
Parameters
Type |
Name |
Description |
System.Boolean |
showRoundedCorner |
|
Returns
TextAlign(TextAlign)
Specify the text alignment for mask edit textbox control with string argument.
Declaration
public MaskEditPropertiesBuilder TextAlign(TextAlign textAlign)
Parameters
Returns
ToHtmlString()
Returns an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
ValidationMessage(Action<MaskEditValidationMessageBuilder>)
Sets the jQuery validation error message in mask edit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally with object argument.
Declaration
public MaskEditPropertiesBuilder ValidationMessage(Action<MaskEditValidationMessageBuilder> validationMessage)
Parameters
Returns
ValidationMessage(Dictionary<String, Object>)
Sets the jQuery validation error message in mask edit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally with dictonary argument.
Declaration
public MaskEditPropertiesBuilder ValidationMessage(Dictionary<string, object> validationMessage)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationMessage |
|
Returns
ValidationRules(Action<MaskEditValidationRuleBuilder>)
Sets the jQuery validation rules to the MaskEdit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally with object argument.
Declaration
public MaskEditPropertiesBuilder ValidationRules(Action<MaskEditValidationRuleBuilder> validationRule)
Parameters
Returns
ValidationRules(Dictionary<String, Object>)
Sets the jQuery validation rules to the MaskEdit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally with dictonary argument.
Declaration
public MaskEditPropertiesBuilder ValidationRules(Dictionary<string, object> validationRule)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationRule |
|
Returns
Value(String)
Specifies the value for the mask edit textbox control with string argument.
Declaration
public MaskEditPropertiesBuilder Value(string vaue)
Parameters
Type |
Name |
Description |
System.String |
vaue |
|
Returns
WatermarkText(String)
Specifies the water mark text to be displayed in input text with string argument.
Declaration
public MaskEditPropertiesBuilder WatermarkText(string watermarkText)
Parameters
Type |
Name |
Description |
System.String |
watermarkText |
|
Returns
Width(String)
Specifies the width for the mask edit textbox control with string argument.
Declaration
public MaskEditPropertiesBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns
Implements
System.Web.IHtmlString