Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-masked-textbox同步融合 winforms 屏蔽文本框

Agent Skill

syncfusion-winforms-masked-textbox 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

727

周安装

30

GitHub Stars

公开资料未说明

下载量

238
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winforms-masked-textbox(同步融合 winforms 屏蔽文本框)
来源仓库:https://github.com/syncfusion/winforms-ui-components-skills
仓库路径:skills/syncfusion-winforms-masked-textbox
安装命令:
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-masked-textbox
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-masked-textbox

简介

带输入掩码的文本框,强制用户按指定格式填写如电话、身份证号码。

  • 适用于金融、医疗等对数据规范性要求严格的领域表单设计。
  • 技能内置常见掩码模板,也支持正则表达式自定义验证规则。
  • 动态切换掩码模式时需清空历史输入,防止残留字符造成解析混乱。
  • 辅助技术(如屏幕阅读器)兼容性需单独测试确保无障碍访问支持。

SKILL.md

Implementing MaskedEditBox in Syncfusion WinForms

The MaskedEditBox control is a specialized input control for collecting formatted data with predefined patterns. It provides visual cues and input constraints through mask definitions, making it ideal for standardized data entry like phone numbers, IP addresses, and SSNs.

When to Use MaskedEditBox

Use this control when you need to:

  • Restrict user input to specific patterns (phone: (###) ###-####)
  • Provide visual placeholders for expected data format
  • Validate input as users type without separate validation logic
  • Handle common patterns: phone numbers, IP addresses, dates, currency
  • Prevent invalid data entry at the control level
  • Display consistent formatting across your application

Do NOT use if users need completely free-form text input or when data format is unpredictable.

Component Overview

Key Concepts

Mask: A string defining the input format using:

  • Mask characters (placeholders like # for digits, & for letters)
  • Literal characters (fixed symbols like parentheses, dashes in (###) ###-####)

Examples:

  • US Phone: (###) ###-####
  • IP Address: ###.###.###.###
  • Social Security: ###-##-####
  • Date (MM/DD/YYYY): ##/##/####

Core Features

  • Multiple Modes: ClipMode (strip separators), InputMode (include separators), UsageMode (programmatic)
  • Appearance Control: Borders, fonts, colors, display options
  • Data Handling: Separate Text (with masks) and Value (mask characters only)
  • Separators: Date, decimal, thousand, time separators for regional formats
  • Events: Input validation, completion, and interaction events

Documentation Navigation

Read the references below based on your implementation needs:

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly setup
  • Adding MaskedEditBox via designer
  • Adding MaskedEditBox via code
  • Basic initialization

Mask Configuration

📄 Read: references/mask-settings.md

  • Mask character types and syntax
  • Creating phone number masks
  • IP address masks
  • Custom mask patterns

Behavior Modes

📄 Read: references/behavior-modes.md

  • ClipMode: Output format control
  • InputMode: User input behavior
  • UsageMode: Programmatic usage
  • Selecting the right mode for your use case

Text and Value Handling

📄 Read: references/text-and-value-handling.md

  • Text property (includes mask literals)
  • Value property (mask characters only)
  • DataGroups configuration
  • Separator settings (Date, Decimal, Thousand, Time)
  • Input validation patterns

Appearance Settings

📄 Read: references/appearance-settings.md

  • Border styles and colors
  • Font properties and sizes
  • Display options and visibility
  • Read-only mode
  • Enabled/disabled states

Events and Validation

📄 Read: references/events-and-validation.md

  • Available MaskedEditBox events
  • Input validation events
  • Completion and focus events
  • Event handling examples

Quick Start Example

using Syncfusion.Windows.Forms.Tools;

// Create MaskedEditBox for phone number
MaskedEditBox phoneInput = new MaskedEditBox();
phoneInput.Mask = "(###) ###-####";  // US phone format
phoneInput.Location = new Point(10, 10);
phoneInput.Size = new Size(200, 25);
phoneInput.Placeholder = "(123) 456-7890";

// Add to form
this.Controls.Add(phoneInput);

// Access entered value
string phoneValue = phoneInput.Value;  // Without mask characters: "1234567890"
string phoneText = phoneInput.Text;    // With mask: "(123) 456-7890"

Common Patterns

Phone Number (US Format)

maskedEditBox.Mask = "(###) ###-####";

IP Address

maskedEditBox.Mask = "###.###.###.###";

Social Security Number

maskedEditBox.Mask = "###-##-####";

Date (MM/DD/YYYY)

maskedEditBox.Mask = "##/##/####";

Zip Code (US)

maskedEditBox.Mask = "#####";
// Optional: Extended format
maskedEditBox.Mask = "#####-####";

Key Properties

PropertyPurposeExample
MaskDefines the input format pattern"(###) ###-####"
TextGets/sets text including mask literals"(123) 456-7890"
ValueGets/sets text without mask characters"1234567890"
ClipModeControls output format when mask is removedClipModes.IncludeLiterals
InputModeControls user input behaviorInputModes.IgnoreSeparators
Border3DStyleBorder appearanceBorder3DStyle.Raised
FontFont properties (name, size, style)new Font("Arial", 10)
ForeColorText colorColor.Black
BackColorBackground colorColor.White
ReadOnlyPrevent user inputtrue/false
EnabledEnable/disable controltrue/false

Common Use Cases

1. Phone Number Input with Validation

Collect phone numbers in a standard format, preventing invalid entry at the control level.

2. International Format Support

Configure region-specific separators and date/time formats using separator properties.

3. Financial Data Entry

Use for currency input, account numbers, or formatted numeric data with controlled precision.

4. Medical/Government Forms

Enforce specific formats for medical IDs, social security numbers, and registration codes.

5. Network Configuration

IP addresses, MAC addresses, and other network identifiers requiring fixed formats.


Next Steps:

  1. Start with getting-started.md to set up the control
  2. Choose your mask format from mask-settings.md
  3. Configure behavior in behavior-modes.md
  4. Handle data with text-and-value-handling.md
  5. Customize appearance in appearance-settings.md
  6. Add events from events-and-validation.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.55%
按下载量换算85

Claude

30.47%
按下载量换算73

Cursor

20.36%
按下载量换算48

Gemini CLI

10.1%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills