ListStyle property
Specifies the visual appearance of the list in a ListBox or ComboBox.
Syntax
object.ListStyle [= fmListStyle ]
The ListStyle property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
fmListStyle | Optional. The visual style of the list. |
Settings
The settings for fmListStyle are:
Constant | Value | Description |
---|---|---|
fmListStylePlain | 0 | Looks like a regular list box, with the background of items highlighted. |
fmListStyleOption | 1 | Shows option buttons, or check boxes for a multi-select list (default). When the user selects an item from the group, the option button associated with that item is selected, and the option buttons for the other items in the group are deselected. |
Remarks
The ListStyle property lets you change the visual presentation of a ListBox or ComboBox. By specifying a setting other than fmListStylePlain, you can present the contents of either control as a group of individual items, with each item including a visual cue to indicate whether it is selected.
If the control supports a single selection (the MultiSelect property is set to fmMultiSelectSingle), the user can press one button in the group. If the control supports multi-select, the user can press two or more buttons in the group.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기