Table of contents
TOC
折叠目录
展开目录

标签对象 (访问)Label Object (Access)

office 365 dev account|上次更新日期: 2018/1/26
|
2 参与人员

此对象对应于一个标签控件。窗体或报表上的标签显示说明性文本,例如标题、说明或简短指示。This object corresponds to a label control. Labels on a form or report display descriptive text such as titles, captions, or brief instructions.

注解Remarks

标签具有下列特点:Labels have certain characteristics:

  • 标签不显示字段或表达式中的值。Labels don't display values from fields or expressions.

  • 标签始终是未绑定的。Labels are always unbound.

  • 在记录之间移动时,标签不会改变。Labels don't change as you move from record to record.

控件Control:工具Tool:
标签控件标签工具

标签可以附加到另一个控件上。例如创建文本框时,就会有一个附加的标签来显示该文本框的标题。该标签在窗体“数据表”视图中作为列标题显示。A label can be attached to another control. When you create a text box, for example, it has an attached label that displays a caption for that text box. This label appears as a column heading in the Datasheet view of a form.

通过使用标签工具创建标签时,标签单独出现,而不附加到任何其他控件。When you create a label by using the Label tool, the label stands on its own — it isn't attached to any other control.诸如窗体或报表的标题或其他说明性文本,您可以使用单独的标签。You use stand-alone labels for information such as the title of a form or report, or for other descriptive text.在数据表视图中不显示独立的标签。Stand-alone labels don't appear in Datasheet view.

活动Events

名称Name
ClickClick
DblClickDblClick
MouseDownMouseDown
MouseMoveMouseMove
MouseUpMouseUp

方法Methods

名称Name
MoveMove
SizeToFitSizeToFit

属性Properties

名称Name
ApplicationApplication
BackColorBackColor
BackShadeBackShade
BackStyleBackStyle
BackThemeColorIndexBackThemeColorIndex
BackTintBackTint
BorderColorBorderColor
BorderShadeBorderShade
BorderStyleBorderStyle
BorderThemeColorIndexBorderThemeColorIndex
BorderTintBorderTint
BorderWidthBorderWidth
BottomMarginBottomMargin
BottomPaddingBottomPadding
CaptionCaption
ControlTipTextControlTipText
ControlTypeControlType
DisplayWhenDisplayWhen
EventProcPrefixEventProcPrefix
FontBoldFontBold
FontItalicFontItalic
FontNameFontName
FontSizeFontSize
FontUnderlineFontUnderline
FontWeightFontWeight
ForeColorForeColor
ForeShadeForeShade
ForeThemeColorIndexForeThemeColorIndex
ForeTintForeTint
GridlineColorGridlineColor
GridlineShadeGridlineShade
GridlineStyleBottomGridlineStyleBottom
GridlineStyleLeftGridlineStyleLeft
GridlineStyleRightGridlineStyleRight
GridlineStyleTopGridlineStyleTop
GridlineThemeColorIndexGridlineThemeColorIndex
GridlineTintGridlineTint
GridlineWidthBottomGridlineWidthBottom
GridlineWidthLeftGridlineWidthLeft
GridlineWidthRightGridlineWidthRight
GridlineWidthTopGridlineWidthTop
HeightHeight
HelpContextIdHelpContextId
HorizontalAnchorHorizontalAnchor
HyperlinkHyperlink
超链接地址HyperlinkAddress
HyperlinkSubAddress
InSelectionInSelection
IsVisibleIsVisible
LayoutLayout
LayoutIDLayoutID
LeftLeft
LeftMarginLeftMargin
LeftPaddingLeftPadding
LineSpacingLineSpacing
NameName
NumeralShapesNumeralShapes
OldBorderStyleOldBorderStyle
OnClickOnClick
OnDblClickOnDblClick
OnMouseDownOnMouseDown
OnMouseMoveOnMouseMove
OnMouseUpOnMouseUp
ParentParent
PropertiesProperties
ReadingOrderReadingOrder
RightMarginRightMargin
RightPaddingRightPadding
SectionSection
ShortcutMenuBarShortcutMenuBar
SmartTagsSmartTags
SpecialEffectSpecialEffect
TagTag
TextAlignTextAlign
ThemeFontIndexThemeFontIndex
TopTop
TopMarginTopMargin
TopPaddingTopPadding
VerticalVertical
VerticalAnchorVerticalAnchor
VisibleVisible
WidthWidth

另请参阅See also

其他资源Other resources

标签对象成员Label Object Members
Access 对象模型引用Access Object Model Reference

© 2018 Microsoft