BCGControlBar Library for .NET
CanSelectObject Method (GalleryControl)




Specifies a reference to object, which is about to be selected or highlighted.

Tells whether an object can be selected (highlighted).

 

Syntax
'Declaration
 
Public Overrides Function CanSelectObject( _
   ByVal obj As ICommandObject _
) As Boolean
'Usage
 
Dim instance As GalleryControl
Dim obj As ICommandObject
Dim value As Boolean
 
value = instance.CanSelectObject(obj)
public override bool CanSelectObject( 
   ICommandObject obj
)
public: bool CanSelectObject( 
   ICommandObject* obj
) override 
public:
bool CanSelectObject( 
   ICommandObject^ obj
) override 

Parameters

obj
Specifies a reference to object, which is about to be selected or highlighted.

Return Value

Should return true if the obj can be highlighted and selected. Currently this override returns false for caption items. 
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GalleryControl Class
GalleryControl Members
Base Implementation in CanSelectObject

Send Feedback