Training
Module
Format alphanumeric data for presentation in C# - Training
Explore basic methods in C# to format alphanumeric data.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can control whether text and images are displayed on a ToolStripItem and how they are aligned relative to each other and the ToolStrip.
Set the DisplayStyle property to the desired value. The possibilities are Image
, ImageAndText
, None
, and Text
. The default is ImageAndText
.
ToolStripButton2.DisplayStyle = _
System.Windows.Forms.ToolStripItemDisplayStyle.Image
toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
Set the TextAlign property to the desired value. The possibilities are any combination of top, middle, and bottom with left, center, and right. The default is MiddleCenter
.
ToolStripSplitButton1.TextAlign = _
System.Drawing.ContentAlignment.MiddleRight
toolStripSplitButton1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
Set the ImageAlign property to the desired value. The possibilities are any combination of top, middle, and bottom with left, center, and right. The default is MiddleLeft
.
ToolStripSplitButton1.ImageAlign = _
System.Drawing.ContentAlignment.MiddleRight
toolStripSplitButton1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
Set the TextImageRelation property to the desired value. The possibilities are ImageAboveText
, ImageBeforeText
, Overlay
, TextAboveImage
, and TextBeforeImage
. The default is ImageBeforeText
.
ToolStripButton1.TextImageRelation = _
System.Windows.Forms.TextImageRelation.ImageAboveText
toolStripButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
.NET Desktop feedback feedback
.NET Desktop feedback is an open source project. Select a link to provide feedback:
Training
Module
Format alphanumeric data for presentation in C# - Training
Explore basic methods in C# to format alphanumeric data.