BCGControlBar Library for .NET
RibbonObjectFromPoint Method (CategoryPanel)




A point to retrive.
A type of Ribbon object which contains the specified point.
Returns an object which located within the CategoryItem and contains the specified point.
Syntax
'Declaration
 
Public Overridable Function RibbonObjectFromPoint( _
   ByVal point As Point, _
   ByRef type As RibbonObjectType _
) As Object
'Usage
 
Dim instance As CategoryPanel
Dim point As Point
Dim type As RibbonObjectType
Dim value As Object
 
value = instance.RibbonObjectFromPoint(point, type)
public virtual object RibbonObjectFromPoint( 
   Point point,
   ref RibbonObjectType type
)
public: virtual Object* RibbonObjectFromPoint( 
   Point point,
   ref RibbonObjectType type
) 
public:
virtual Object^ RibbonObjectFromPoint( 
   Point point,
   RibbonObjectType% type
) 

Parameters

point
A point to retrive.
type
A type of Ribbon object which contains the specified point.
Remarks
This function check all objects from CategoryItem collection whether one of them  the specified point. If any CategoryItem contains this point, it will be returned and the type of RibbonObject will be CategoryItem. If no CategoryItem contains this point, the object CategoryPanel will be returned.
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

CategoryPanel Class
CategoryPanel Members

Send Feedback