System.Actions.TContainedActionList.SameCategory

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SameCategory(const Source, Dest: string;
const IncludeSubCategory: Boolean = True): Boolean;

C++

bool __fastcall SameCategory(const System::UnicodeString Source, const System::UnicodeString Dest, const bool IncludeSubCategory = true);

Properties

Type Visibility Source Unit Parent
function protected
System.Actions.pas
System.Actions.hpp
System.Actions TContainedActionList

Description

Returns True if the Source and Dest categories are the same. If IncludeSubCategory is True, this function also returns true if Dest is a subcategory of Source.

These are some examples of calls to this function:

Source Dest IncludeSubCategory Result
File File True True
File.Recent File True False
File File.Recent True True
File File False True
File.Recent File False False
File File.Recent False False

See Also