C# Devexpress學習--LabelControl


 

LabelControl can display an image (regular or animated GIF file). Different images can be provided in the normal, disabled, hovered and pressed states. To specify images, use the label's appearance settings, accessed via the AppearanceAppearanceDisabled,AppearanceHovered and AppearancePressed properties. For instance, use the LabelControl.Appearance.Image orLabelControl.Appearance.ImageIndex (LabelControlAppearanceObject.ImageIndex) property to provide the default image for the label.

The alignment of an image relative to the label's text is specified by the ImageAlignToText property.

If the ImageAlignToText property is set to ImageAlignToText.None, the alignment of an image within the label is specified by the label's appearance settings (LabelControlAppearanceObject.ImageAlign).

When the LineVisible property is set to true, a LabelControl displays a line in its empty space.

The properties that affect the line display include:

The line is displayed when the label's width/height exceeds the width/height of its text. In some cases, you may need to manipulate theAutoSizeMode property to resize a label to custom dimensions.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM