GrapeCity.Win.MultiRow Namespace : MaskedTextBoxCell Class |
<FeatureAttribute(Name="MaskedTextBoxCell", Version="v5.0")> <ToolboxItemFilterAttribute(FilterString="GrapeCity.Win.MultiRow.Template7", FilterType=ToolboxItemFilterType.Custom Or _ ToolboxItemFilterType.Prevent Or _ ToolboxItemFilterType.Require)> <ToolboxBitmapAttribute()> <DefaultPropertyAttribute("Mask")> <SRDescriptionAttribute("Uses a mask to distinguish between proper and improper user input.")> <DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="GrapeCity.Win.MultiRow.Design.MaskedTextBoxCellDesigner,GrapeCity.Win.MultiRow.Design, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")> Public Class MaskedTextBoxCell Inherits Cell
Dim instance As MaskedTextBoxCell
[Feature(Name="MaskedTextBoxCell", Version="v5.0")] [ToolboxItemFilter(FilterString="GrapeCity.Win.MultiRow.Template7", FilterType=ToolboxItemFilterType.Custom | ToolboxItemFilterType.Prevent | ToolboxItemFilterType.Require)] [ToolboxBitmap()] [DefaultProperty("Mask")] [SRDescription("Uses a mask to distinguish between proper and improper user input.")] [Designer(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="GrapeCity.Win.MultiRow.Design.MaskedTextBoxCellDesigner,GrapeCity.Win.MultiRow.Design, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")] public class MaskedTextBoxCell : Cell
The MaskedTextBoxCell class is a special type of Cell used to display a System.Windows.Forms.MaskedTextBox type cell.
Note to Inheritors:
When overriding the Clone method in a derived class, call the base class's Clone method so that the properties of the base class are copied to the new cell, and be sure to also copy the values of any properties that were added to the derived class.
using System; using System.Windows.Forms; using System.Drawing; namespace GrapeCity.Win.MultiRow.SampleCode { public class MaskedTextBoxCellDemo : Form { private GcMultiRow gcMultiRow1 = new GcMultiRow(); public MaskedTextBoxCellDemo() { this.Text = "MaskedTextBoxCell Demo"; this.gcMultiRow1.Dock = DockStyle.Fill; this.Controls.Add(this.gcMultiRow1); this.Load += new EventHandler(Form1_Load); } private void Form1_Load(object sender, EventArgs e) { MaskedTextBoxCell jpDateMaskedTextBoxCell = new MaskedTextBoxCell(); jpDateMaskedTextBoxCell.Mask = "AA00年90月90日 90時90分"; jpDateMaskedTextBoxCell.Size = new Size(170, 21); MaskedTextBoxCell postalcodeMaskedTextBoxCell = new MaskedTextBoxCell(); postalcodeMaskedTextBoxCell.Mask = "000-0000"; postalcodeMaskedTextBoxCell.Size = new Size(60, 21); Cell[] cells = new Cell[] { jpDateMaskedTextBoxCell, postalcodeMaskedTextBoxCell }; Template template1 = Template.CreateGridTemplate(cells); template1.ColumnHeaders[0][0].Value = "日付と時間(和暦、日本語)"; template1.ColumnHeaders[0][1].Value = "郵便番号"; gcMultiRow1.Template = template1; gcMultiRow1.RowCount = 3; gcMultiRow1[0, 0].Value = "平成11年06月03日 09時30分"; gcMultiRow1[0, 1].Value = "182-0021"; }
Imports System Imports System.Windows.Forms Imports System.Drawing Imports GrapeCity.Win.MultiRow Public Class MaskedTextBoxCellDemo Inherits Form Private gcMultiRow1 As New GcMultiRow() Public Sub New() Me.Text = "MaskedTextBoxCell Demo" Me.gcMultiRow1.Dock = DockStyle.Fill Me.Controls.Add(Me.gcMultiRow1) End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Dim jpDateMaskedTextBoxCell As New MaskedTextBoxCell() jpDateMaskedTextBoxCell.Mask = "AA00年90月90日 90時90分" jpDateMaskedTextBoxCell.Size = New Size(170, 21) Dim postalcodeMaskedTextBoxCell As New MaskedTextBoxCell() postalcodeMaskedTextBoxCell.Mask = "000-0000" postalcodeMaskedTextBoxCell.Size = New Size(60, 21) Dim cells As Cell() = New Cell() {jpDateMaskedTextBoxCell, postalcodeMaskedTextBoxCell} Dim template1 As Template = Template.CreateGridTemplate(cells) template1.ColumnHeaders(0)(0).Value = "日付と時間(和暦、日本語)" template1.ColumnHeaders(0)(1).Value = "郵便番号" gcMultiRow1.Template = template1 gcMultiRow1.RowCount = 3 gcMultiRow1(0, 0).Value = "平成11年06月03日 09時30分" gcMultiRow1(0, 1).Value = "182-0021" End Sub
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
GrapeCity.Win.MultiRow.Cell
GrapeCity.Win.MultiRow.MaskedTextBoxCell
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2