一、基本数据类型前缀
数据类型 | 数据类型简写 |
---|
Array | arr |
Boolean | bln |
Byte | byt |
Char | chr |
DateTime | dtm |
Decimal | dec |
Double | dbl |
Integer | int |
Long | lng |
Object | obj |
Short | shr |
Single | sng |
String | str |
二、ADO.NET对象前缀
控件类型 | 控件类型简写 |
---|
Command | cmd |
Connection | conn |
DataAdapter | da |
DataColumn | dcol |
DataReader | dr |
DataRelation | Drel |
DataRow | drow |
DataSet | ds |
DataTable | tbl |
DataView | dv |
Parameter | parm |
三、WinForm Control 命名规范
控件类型 | 控件类型简写 |
---|
BackgroundWorker | bgw |
BindingNavigator | bdn |
BindingSource | bds |
Button | btn |
CheckBox | chk |
CheckedListBox | clst |
ColorDialog | cdlg |
ComboBox | cbo |
ContextMenuStrip | cms |
CrystalReportViewer | crv |
DataGrid | dgrd |
DataGridView | dgv |
DataSet | dts |
DateTimePicker | dtp |
DirectoryEntry | dre |
DirectorySearcher | drs |
DomainUpDown | dud |
ErrorProvider | err |
EventLog | evl |
FileSystemWatcher | fsw |
FlowLayoutPanel | flp |
FolderBrowserDialog | fbdlg |
FontDialog | fdlg |
Form | frm |
GroupBox | grp |
HelpProvider | hlp |
HscrollBar | hsb |
ImageList | ilst |
Label | lbl |
LinkLabel | llbl |
ListBox | lst |
ListView | lvw |
MainMenu | mmnu |
MaskedTextBox | mtx |
MenuStrip | ms |
MessageQueue | msq |
MonthCalendar | cdr |
NotifyIcon | icn |
NumeircUpDown | nud |
OpenFileDialog | ofdlg |
PageSetupDialog | psdlg |
Panel | pnl |
PerformanceCounter | pfc |
PictureBox | pic |
PrintDialog | pdlg |
PrintDocument | pdc |
PrintPreviewControl | prv |
PrintPreviewDialog | ppd |
Process | prc |
ProgressBar | pgb |
PropertyGrid | prg |
RadioButton | rbtn |
ReportDocument | rpd |
ReportViewer | rpv |
RichTextBox | rtx |
SaveFileDialog | sfdlg |
SerialPort | spt |
ServiceController | scl |
SplitContainer | spc |
Splitter | spl |
StatusBar | stb |
StatusStrip | ss |
TabControl | tab |
TableLayoutPanel | tlp |
TextBox | txt |
Timer | tmr |
ToolBar | tlb |
ToolStrip | ts |
ToolStripButton | tsbtn |
ToolStripContainer | tsc |
ToolStripDropDownButton | tsddbtn |
ToolStripLabel | tslbl |
ToolStripMenuItem | tsmi |
ToolStripSeparator | tss |
ToolStripSplitButton | tssbtn |
ToolTip | tip |
TrackBar | trb |
TreeView | tvw |
VscrollBar | vsb |
WebBrowser | wbs |
四、WebControl 命名规范
控件类型 | 控件类型简写 |
---|
Adrotator | adrt |
BulletedList | blst |
Button | btn |
Calendar | cal |
CheckBox | chk |
CheckBoxList | chkl |
CompareValidator | valc |
CustomValidator | valx |
DataGrid | dg |
DataList | dl |
DetailsView | dtv |
DropDownList | ddl |
FileUpLoad | fup |
FormView | fmv |
GridView | grv |
HiddenField | hfld |
HyperLink | lnk |
Image | img |
ImageButton | ibtn |
ImageMap | imap |
Label | lbl |
LinkButton | lbtn |
ListBox | lst |
Literal | ltl |
Localize | loc |
MultiView | mvw |
Panel | pnl |
PlaceHolder | plh |
RadioButton | rad |
RadioButtonList | radl |
RangeValidator | valg |
RegularExpression | reg |
Repeater | rpt |
RequiredFieldValidator | valr |
SubStitution | subs |
Table | tbl |
TableCell | tblc |
TableRow | tblr |
TextBox | txt |
ValidationSummary | vals |
View | vw |
Wizard | wiz |
到此这篇关于.NET控件命名规范的文章就介绍到这了。希望对大家的学习有所帮助,也希望大家多多支持编程网。
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341