CListBox控件主要包括哪些方法?

2025-12-05 07:09:10
推荐回答(2个)
回答1:

包括的方法很多,具体如下,
如果有具体问题可以说出来,或许我可以帮到你。

In TListBox

~TListBox
TListBox

Derived from TCustomListBox

Clear
ClearSelection
ItemAtPos
ItemRect
ItemVisible
MakeCurrentVisible
Sort
Update
VisibleItemCount

Derived from TFrameControl

ContentsRect

Derived from TWidgetControl

Broadcast
CanFocus
ContainsControl
ControlAtPos

CreateParentedControl
DisableAlign
EnableAlign
FindChildControl
FlipChildren
Focused
GetTabOrderList
HandleAllocated
HandleNeeded
InsertControl
Invalidate
InvalidateRect

InvokeHelp
Realign
RemoveControl
Repaint
ScaleBy
ScrollBy
SetFocus
UpdateControlState

Derived from TControl

AfterConstruction
BeginDrag
BringToFront
ClientToParent
ClientToScreen
DragDrop
Dragging
EndDrag
GetParentComponent
HasParent
Hide
InitiateAction
ParentToClient
Refresh
ScreenToClient
SendToBack
SetBounds

Show

Derived from TComponent

BeforeDestruction
DestroyComponents
Destroying
ExecuteAction
FindComponent
FreeNotification
GetNamePath
InsertComponent
IsImplementorOf
ReferenceInterface
RemoveComponent
RemoveFreeNotification
SafeCallException
SetSubComponent
UpdateAction

Derived from TPersistent

Assign

Derived from TObject

ClassInfo
ClassName
ClassNameIs
ClassParent
ClassType
CleanupInstance
DefaultHandler
Dispatch
FieldAddress
Free
FreeInstance
GetInterface
GetInterfaceEntry
GetInterfaceTable
InheritsFrom
InitInstance
InstanceSize

MethodAddress
MethodName
NewInstance

回答2:

看说明文档一目了然