<< Return to Main Index

< Return to Class Index

CGXGridCore::GetRangeName

virtual BOOL GetRangeName(LPCTSTR name, CGXRange& rg);

virtual BOOL GetRangeName(LPCTSTR name, CGXRange& rg);

name

Points to the string with the range name

rg

A reference to CGXRange object where range will be stored.

Return Value

TRUE if a range with the given name was found; FALSE otherwise.

Remarks

Returns the associated range for a given range name.

Example:

      SetRangeName(_T("number"), CGXRange(6,1,10,4));

      CGXRange rg;
      VERIFY(GetRangeName(_T("number"), rg));

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementRangeName method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXFormulaSheet::GetRangeName

CGXGridCore

Class Overview | Class Members