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

syncfusion-winforms-numeric-textbox同步融合 winforms 数字文本框

Agent Skill

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

总安装

792

周安装

33

GitHub Stars

1

下载量

264
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

专用于浮点数输入的文本框,支持小数点、负号与科学计数法处理。

  • 适用于金额、比率、测量值等连续数值类型的表单字段设计。
  • 技能集成输入验证与格式化输出,确保前后端数据表达一致。
  • 不同文化圈数字格式(如逗号分隔)需根据 Locale 动态调整显示规则。
  • 防抖处理可避免实时计算带来的性能损耗,提升用户体验流畅度。

SKILL.md

Implementing Syncfusion WinForms SfNumericTextBox

The Syncfusion WinForms SfNumericTextBox control is an advanced text input control that displays and accepts numeric values in multiple formats (numeric, currency, percent) with comprehensive validation, customization, and cultural support. It provides formatting options, value constraints, appearance customization, and event-driven capabilities for professional numeric data entry scenarios.

When to Use This Skill

Use this skill ALWAYS and immediately when you need to:

  • Numeric Input: Accept and display numeric values with precision
  • Format Modes: Support numeric, currency, or percent formats
  • Value Validation: Enforce minimum and maximum value constraints
  • Formatting: Apply custom formatting with prefix/suffix, hide trailing zeros
  • Watermark: Display placeholder text when control is empty
  • Cultural Formatting: Support multiple cultures and number formats
  • Appearance Customization: Customize colors based on value (positive/negative/zero)
  • Event Handling: Respond to value changes with ValueChanged event
  • Data Entry Forms: Build professional forms with validated numeric fields

Component Overview

The SfNumericTextBox control is part of Syncfusion Essential Studio for Windows Forms and provides:

  • Multiple Format Modes: Numeric, Currency, and Percent modes
  • Value Range Support: Define and validate minimum and maximum values
  • Precision Preservation: Maintains full precision while displaying formatted text
  • Null Value Support: AllowNull property for nullable numeric fields
  • Watermark Text: Display guidance text when value is null
  • Custom Units: Prefix and suffix support for units and labels
  • Trailing Zeros: Option to hide trailing zeros for cleaner display
  • Validation Modes: KeyPress or LostFocus validation timing
  • Color Customization: Different colors for positive, negative, and zero values
  • Border Styling: Customizable borders with focus and hover states
  • Event System: ValueChanged event with OldValue and NewValue tracking
  • Cultural Support: Culture-aware formatting via NumberFormatInfo
  • Designer Support: Full design-time support via toolbox

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: First-time setup, installation, basic implementation

Topics covered:

  • Assembly deployment and NuGet package installation
  • Adding SfNumericTextBox via designer or code
  • Namespace imports
  • Setting values (Value property)
  • Basic format modes
  • Watermark text basics
  • Min/Max value setup

Format Modes

📄 Read: references/format-modes.md

When to read: Formatting numbers in different modes, cultural support

Topics covered:

  • FormatMode property (Numeric, Currency, Percent)
  • Numeric format mode with decimal control
  • Currency formatting with symbols
  • Percent mode for percentage values
  • Culture-specific formatting
  • NumberFormatInfo customization
  • Decimal separators and group separators
  • Practical examples for each mode

Formatting Options

📄 Read: references/formatting-options.md

When to read: Hiding zeros, adding units, displaying watermarks

Topics covered:

  • Hiding trailing zeros (HideTrailingZeros property)
  • Prefix and suffix for custom units
  • Watermark text implementation
  • WatermarkText property and AllowNull
  • Combining watermark with format modes
  • Display examples
  • Edge cases and best practices

Validation and Value Ranges

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

When to read: Enforcing value constraints, configuring validation behavior

Topics covered:

  • MinValue and MaxValue properties
  • ValidationMode property (KeyPress vs LostFocus)
  • ValueChangeMode property (when value updates)
  • LostFocusValidation modes (Reset, MaxValue, MinValue)
  • Validation flow and event timing
  • Error scenarios and handling
  • Practical validation examples

Appearance and Styling

📄 Read: references/appearance-and-styling.md

When to read: Customizing colors, borders, and visual appearance

Topics covered:

  • PositiveForeColor for positive values
  • NegativeForeColor for negative values
  • ZeroForeColor for zero values
  • WatermarkForeColor for placeholder text
  • BorderColor, FocusBorderColor, HoverBorderColor
  • DisabledBorderColor for disabled state
  • BorderStyle property
  • Background and font customization
  • Visual state examples

Events and Advanced Patterns

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

When to read: Handling value changes, advanced scenarios

Topics covered:

  • ValueChanged event and subscription
  • ValueChangedEventArgs (OldValue, NewValue)
  • Event timing and validation interaction
  • Responding to value changes
  • Advanced patterns (conditional formatting, cascading updates)
  • Performance considerations
  • Common event patterns

Quick Start Example

Basic Numeric TextBox in Code

using Syncfusion.WinForms.Input;

// Create SfNumericTextBox
var numericTextBox = new SfNumericTextBox();
numericTextBox.Size = new System.Drawing.Size(150, 20);
numericTextBox.Value = 123.45;
this.Controls.Add(numericTextBox);

With Formatting and Validation

// Set format mode to currency
numericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Currency;

// Set value constraints
numericTextBox.MinValue = 0;
numericTextBox.MaxValue = 10000;

// Add watermark
numericTextBox.WatermarkText = "Enter amount";
numericTextBox.AllowNull = true;

// Subscribe to value changes
numericTextBox.ValueChanged += (sender, e) =>
{
    MessageBox.Show($"Value changed from {e.OldValue} to {e.NewValue}");
};

Key Props and Methods

PropertyTypePurpose
Valuedouble?Gets or sets the numeric value
FormatModeFormatModeSets format (Numeric, Currency, Percent)
MinValuedoubleMinimum allowed value
MaxValuedoubleMaximum allowed value
AllowNullboolAllow null values in control
WatermarkTextstringPlaceholder text when empty
HideTrailingZerosboolHide zeros after decimal point
PrefixstringText prepended to value
SuffixstringText appended to value
ValidationModeValidationModeKeyPress or LostFocus
ValueChangeModeValueChangeModeWhen value property updates
NumberFormatInfoNumberFormatInfoCulture-specific number formatting

Common Patterns

Pattern 1: Currency Input with Range

// Currency field with $0-$10,000 range
numericTextBox.FormatMode = FormatMode.Currency;
numericTextBox.MinValue = 0;
numericTextBox.MaxValue = 10000;
numericTextBox.WatermarkText = "Enter amount (0-10000)";

Pattern 2: Percentage Display

// Display and accept percentages
numericTextBox.FormatMode = FormatMode.Percent;
numericTextBox.MinValue = 0;
numericTextBox.MaxValue = 100;
numericTextBox.HideTrailingZeros = true;

Pattern 3: Measurement with Units

// Display with custom units
numericTextBox.Suffix = " inches";
numericTextBox.Value = 25.5;
numericTextBox.HideTrailingZeros = true;

Pattern 4: Validation with Color Feedback

// Color based on value
numericTextBox.Style.PositiveForeColor = Color.Green;
numericTextBox.Style.NegativeForeColor = Color.Red;
numericTextBox.Style.ZeroForeColor = Color.Gray;

Next Steps

  1. Start here: Read getting-started.md for installation and basic setup
  2. Choose format: Explore format-modes.md for numeric, currency, or percent modes
  3. Add formatting: Check formatting-options.md for units, watermarks, and display options
  4. Enable validation: Review validation-and-ranges.md for constraints
  5. Customize appearance: Use appearance-and-styling.md for colors and borders
  6. Handle events: Implement events-and-advanced.md for dynamic behavior

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.97%
按下载量换算90

Claude

29.24%
按下载量换算77

Cursor

20.45%
按下载量换算54

Gemini CLI

9.22%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills