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

syncfusion-winforms-currency-textboxSynfusion Winforms 货币文本框

Agent Skill

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

总安装

696

周安装

29

GitHub Stars

公开资料未说明

下载量

232
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行信息整理。
  • 通过 GitHub 仓库安装,需参考原始 README 了解功能实现。
  • 安装前建议确认权限范围,防止触发意外的网络或文件操作。
  • 适用于代码协作与变更管理。

SKILL.md

Implementing Syncfusion Windows Forms CurrencyTextBox

Syncfusion CurrencyTextBox is a specialized text input control derived from System.Windows.Forms.TextBox that provides currency-specific validation, formatting, and behavior. It handles keyboard input validation, culture-aware decimal formatting, and value constraints automatically.

When to Use This Skill

  • Creating currency input fields with automatic validation
  • Building financial data entry forms (invoices, payments, budgets)
  • Implementing currency display with positive/negative color coding
  • Working with decimal precision and grouping separators
  • Handling clipboard operations with currency data
  • Adding keyboard shortcuts for multiplying values (Mega, Kilo, etc.)
  • Enforcing minimum and maximum currency values
  • Displaying overflow indicators for large numbers

Component Overview

The CurrencyTextBox control intercepts user keyboard input and prevents entry of invalid currency characters. It automatically formats the display based on decimal digits, group separators, and the currency symbol. Unlike the standard TextBox, it validates against min/max bounds and supports currency-specific events.

Key Capabilities:

  • Automatic keyboard input validation
  • Culture-aware decimal formatting
  • Max/Min value constraints with enforcement
  • Positive, negative, and zero value color coding
  • Clipboard support with optional format stripping
  • Overflow indicators with tooltips
  • Keyboard shortcuts for multiplying values
  • ValidationError event for invalid input handling

Documentation Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly dependencies
  • Creating a project and adding the control
  • Designer and code-based control creation
  • Setting up MaxValue/MinValue constraints
  • Configuring currency symbols
  • Basic control properties

Text Field Customization

📄 Read: references/text-field-customization.md

  • Text display and alignment (Left, Center, Right)
  • Multiline support with word wrapping
  • Password character masking
  • Banner text for empty state
  • Number and decimal digit formatting
  • Handling negative values and signs
  • Null string configuration

Value Formatting

📄 Read: references/value-formatting.md

  • DecimalValue programmatic access
  • Currency symbol customization
  • Number formatting (total digits before decimal)
  • Decimal digit precision
  • Group separator configuration
  • Removing trailing decimal zeros
  • Currency positive and negative patterns

Event Handling

📄 Read: references/event-handling.md

  • KeyDown event for keyboard shortcuts
  • Adding multiplier keys (G, M, K for Giga/Mega/Kilo)
  • ValidationError event for invalid input
  • Error message handling with StartPosition
  • Using ErrorProvider for visual feedback
  • Custom validation scenarios

Appearance Customization

📄 Read: references/appearance-customization.md

  • Border styles (FixedSingle, Fixed3D, None)
  • 3D border effects (Raised, Sunken, Flat, etc.)
  • Border color and side configuration
  • Color coding by value (Positive, Negative, Zero)
  • ReadOnly background color
  • Visual style application

Advanced Features

📄 Read: references/advanced-features.md

  • Clipboard support with formatting options
  • Overflow indicator display
  • Overflow indicator tooltips
  • Multiple clipboard modes
  • Data preservation strategies

Validation and Constraints

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

  • Setting min/max boundaries
  • Enforcing constraints during validation
  • Negative input behavior with selected text
  • AllowNull configuration
  • NullString custom display values
  • Value range enforcement

Quick Start Example

using System.Windows.Forms;
using Syncfusion.Windows.Forms.Tools;

public partial class Form1 : Form
{
    private CurrencyTextBox currencyTextBox1;

    public Form1()
    {
        InitializeComponent();

        // Create and configure CurrencyTextBox
        currencyTextBox1 = new CurrencyTextBox();
        currencyTextBox1.Location = new System.Drawing.Point(10, 10);
        currencyTextBox1.Size = new System.Drawing.Size(200, 25);

        // Set currency format
        currencyTextBox1.CurrencySymbol = "$";
        currencyTextBox1.CurrencyDecimalDigits = 2;
        currencyTextBox1.CurrencyGroupSeparator = ",";
        currencyTextBox1.CurrencyGroupSizes = new int[] { 3 };

        // Set value constraints
        currencyTextBox1.MaxValue = 999999.99m;
        currencyTextBox1.MinValue = 0m;
        currencyTextBox1.DecimalValue = 100.00m;

        // Set colors for value states
        currencyTextBox1.PositiveColor = System.Drawing.Color.Black;
        currencyTextBox1.NegativeColor = System.Drawing.Color.Red;
        currencyTextBox1.ZeroColor = System.Drawing.Color.Gray;

        this.Controls.Add(currencyTextBox1);
    }
}

Common Patterns

Currency Entry Form

// For collecting currency amounts (payments, invoices, etc.)
currencyTextBox.MaxValue = decimal.MaxValue;
currencyTextBox.MinValue = 0m;
currencyTextBox.CurrencySymbol = "$";
currencyTextBox.CurrencyDecimalDigits = 2;
currencyTextBox.AllowNull = false;

Profit/Loss Display

// Color-code by sign (green for profit, red for loss)
currencyTextBox.PositiveColor = System.Drawing.Color.Green;
currencyTextBox.NegativeColor = System.Drawing.Color.Red;
currencyTextBox.MaxValue = decimal.MaxValue;
currencyTextBox.MinValue = decimal.MinValue;

Optional Amount with Placeholder

// Allow null values with custom placeholder text
currencyTextBox.AllowNull = true;
currencyTextBox.NullString = "(Not Specified)";
currencyTextBox.Text = "";

Keyboard Shortcuts for Large Numbers

// Handle KeyDown event to add multiplier shortcuts
private void currencyTextBox1_KeyDown(object sender, KeyEventArgs e)
{
    decimal value = currencyTextBox1.DecimalValue;
    switch(e.KeyCode)
    {
        case Keys.G: // Giga (billion)
            currencyTextBox1.DecimalValue = value * 1000000000m;
            break;
        case Keys.M: // Mega (million)
            currencyTextBox1.DecimalValue = value * 1000000m;
            break;
        case Keys.K: // Kilo (thousand)
            currencyTextBox1.DecimalValue = value * 1000m;
            break;
    }
}

Key Properties Reference

PropertyTypePurposeCommon Values
DecimalValuedecimalGet/set numeric value programmaticallyAny valid decimal
CurrencySymbolstringCurrency symbol display"$", "€", "£", "¥"
CurrencyDecimalDigitsintDecimal places displayed2, 3, 4
CurrencyGroupSeparatorstringThousands separator",", ".", " "
MaxValuedecimalMaximum allowed value999999.99, 100000, etc.
MinValuedecimalMinimum allowed value0, -999999.99, etc.
PositiveColorColorColor for positive valuesColor.Black, Color.Green
NegativeColorColorColor for negative valuesColor.Red, Color.Maroon
ZeroColorColorColor for zero valueColor.Gray, Color.DarkGray
TextAlignHorizontalAlignmentText positionLeft, Center, Right
BorderStyleBorderStyleBorder appearanceFixedSingle, Fixed3D, None
AllowNullboolAllow empty/null valuestrue, false
ShowOverflowIndicatorboolShow indicator when value exceeds boundstrue, false

Use Cases by Scenario

Financial Application

  • Use positive/negative color coding
  • Set MaxValue to prevent data type overflow
  • Handle ValidationError for audit logging
  • Support clipboard for paste operations

Budget Entry Form

  • Set reasonable MaxValue (e.g., 999999.99)
  • Use TextAlign.Right for numeric convention
  • Display banner text for required fields
  • Enforce MinValue of 0 if amounts must be positive

Multi-Currency Display

  • Change CurrencySymbol based on user locale
  • Keep CurrencyDecimalDigits consistent (usually 2)
  • Adjust CurrencyGroupSeparator per region
  • Display DecimalValue consistently in database

Large Number Handling

  • Enable keyboard multiplier shortcuts (G, M, K)
  • Use ShowOverflowIndicator for values exceeding visible space
  • Remove decimal zeros with RemoveDecimalZeros property
  • Increase number digits with CurrencyNumberDigits

Next Steps

  • Choose the reference file matching your task
  • Implement the control following the code examples
  • Test with both valid and edge-case values
  • Handle ValidationError event for invalid input
  • Use DecimalValue for business logic, Text for display

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.99%
按下载量换算83

Claude

32.05%
按下载量换算74

Cursor

17.13%
按下载量换算40

Gemini CLI

9.42%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills