Vcl.Menus.TMenuItem Methods
InheritedProtected
| _AddRef | protected | Called when an application uses a component interface. |
| _Release | protected | Called when an application releases a component interface. |
| ActionChange | protected | |
| Add | public | Adds one or more menu items to the end of the Items property array. |
| AdvancedDrawItem | protected | |
| AfterConstruction | public | Responds after the last constructor has executed. |
| Assign | public | Copies the contents of another similar object. |
| AssignTo | protected | |
| AsyncSchedule | protected | Schedules asynch method calls. |
| BeforeDestruction | public | Performs any necessary actions before the first destructor is called. |
| BeginInvoke | public | Performs an asynchronous call to the method specified by either AProc or AFunc. |
| CanObserve | protected | Checks if a component can be observed by a particular observer. |
| ChangeName | protected | Sets the private, internal storage for the Name property to the string passed in NewName. |
| CheckDisposed | protected | This method is deprecated. |
| CheckImageIndex | protected | |
| ClassInfo | public | Returns a pointer to the run-time type information (RTTI) table for the object type. |
| ClassName | public | Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument). |
| ClassNameIs | public | Determines whether an object is of a specific type. |
| ClassParent | public | Returns the type of the immediate ancestor of a class. |
| ClassType | public | Returns the class reference for the object's class. |
| CleanupInstance | public | Performs finalization on long strings, variants, and interface variables within a class. |
| Clear | public | Removes and frees all menu items listed in the Items property. |
| Click | public | Simulates a mouse click. |
| Create | public | Creates an instance of TMenuItem. |
| DefaultHandler | public | Provides the interface for a method that processes message records. |
| DefineProperties | protected | |
| Delete | public | Removes a menu item from the Items property array. |
| Destroy | public | Destroys an instance of TMenuItem. |
| DestroyComponents | public | Destroys all owned components. |
| Destroying | public | Indicates that the component and its owned components are about to be destroyed. |
| Dispatch | public | Calls message-handling methods for the object, based on the contents of the Message parameter. |
| DisposeOf (deprecated) | public | DisposeOf forces the execution of the destructor code in an object. |
| DoDrawText | protected | |
| DrawItem | protected | |
| EndFunctionInvoke | public | Blocks the caller until the specified ASyncResult completes. |
| EndInvoke | public | Blocks the caller until the specified ASyncResult completes. |
| Equals | public | Checks whether the current instance and the Obj parameter are equal. |
| ExecuteAction | public | Executes an action. |
| FieldAddress | public | Returns the address of a published object field. |
| Find | public | Locates a menu item in the Items property array given its caption. |
| FindComponent | public | Indicates whether a given component is owned by the component. |
| Free | public | Destroys an object and frees its associated memory, if necessary. |
| FreeInstance | public | Deallocates memory allocated by a previous call to the NewInstance method. |
| FreeNotification | public | Ensures that AComponent is notified that the component is going to be destroyed. |
| FreeOnRelease | public | Frees the interface reference for components that were created from COM classes. |
| GetActionLinkClass | protected | |
| GetAutoHotkeys | protected | |
| GetAutoLineReduction | protected | |
| GetChildOwner | protected | Returns the owner of a child component being read from a stream. |
| GetChildParent | protected | Returns the parent or, if there is no parent, returns the owner of a child component being read from a stream. |
| GetChildren | public | |
| GetCount | protected | |
| GetDeltaStreams | protected | Retrieves a list of streams representing the differences (deltas) between the current state of a component and a previously saved state. |
| GetDisposed | protected | Getter for the Disposed property. |
| GetEnumerator | public | |
| GetHandle | protected | |
| GetHashCode | public | Returns an integer containing the hash code. |
| GetIDsOfNames | protected | Maps a single member and an optional set of argument names to a corresponding set of integer dispatch identifiers (dispIDs). |
| GetImageList | public | Returns the Image list that supplies an image for the menu item. |
| GetInterface | public | Retrieves a specified interface. |
| GetInterfaceEntry | public | Returns the entry for a specific interface implemented in a class. |
| GetInterfaceTable | public | Returns a pointer to a structure containing all of the interfaces implemented by a given class. |
| GetItem | protected | |
| GetMenuIndex | protected | |
| GetNamePath | public | Returns a string used by the Object Inspector. |
| GetObservers | protected | Getter of Observers. |
| GetOwner | protected | Returns the owner of a component. |
| GetParentComponent | public | Returns the parent component of the menu item. |
| GetParentMenu | public | Returns the main menu of which the menu item is part. |
| GetTypeInfo | protected | Retrieves the type information for an object. |
| GetTypeInfoCount | protected | Returns the number of type information interfaces that an object provides (either 0 or 1). |
| HandleAllocated | public | HandleAllocated indicates whether a menu handle exists for the menu item. |
| HasParent | public | Indicates that the menu item has a parent that is responsible for loading and saving its data. |
| IndexOf | public | Returns the position of a menu item within the Items array. |
| InheritsFrom | public | Determines the relationship of two object types. |
| InitiateAction | public | Calls the action link's Update method if the menu item is associated with an action link. |
| InitInstance | public | Initializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer. |
| Insert | public | Inserts a menu item into a specified position in the Items array. |
| InsertComponent | public | Establishes the component as the owner of a specified component. |
| InsertNewLine | protected | |
| InsertNewLineAfter | public | Inserts a separator bar after a specified item from the Items property array. |
| InsertNewLineBefore | public | Inserts a separator bar before a specified item from the Items property array. |
| InstanceSize | public | Returns the size in bytes of each instance of the object type. |
| Invoke | protected | Provides access to Automation properties and methods when the component wraps an Automation object. |
| IsImplementorOf | public | Indicates whether the component implements a specified interface. |
| IsLine | public | Indicates whether the menu item represents a separator bar. |
| Loaded | protected | |
| MeasureItem | protected | |
| MenuChanged | protected | |
| MethodAddress | public | Returns the address of a class method by name. |
| MethodName | public | Returns the name of a class method by address. |
| NewBottomLine | public | Inserts a separator bar at the end of the Items property array. |
| NewInstance | public | Allocates memory for an instance of an object type and returns a pointer to that new instance. |
| NewTopLine | public | Inserts a separator bar at the beginning of the Items property array. |
| Notification | protected | |
| ObserverAdded | protected | Allows the component to handle the addition of an observer. |
| operator [] | public | |
| operator () | public | C++ conversion of a TComponent into a System.Classes.IInterfaceComponentReference or a System.IInterface, depending on casting. |
| QualifiedClassName | public | Returns the qualified name of the class. |
| QueryInterface | protected | Returns a reference to a specified interface if the current component supports that interface. |
| ReadState | protected | Reads the state of the component. |
| ReferenceInterface | public | Establishes or removes internal links that cause this component to be notified when the implementer of a specified interface is destroyed. |
| Remove | public | Removes a menu item from the Items property array |
| RemoveComponent | public | Removes a specified component specified from the component's Components list. |
| RemoveFreeNotification | public | Disables the destruction notification that was enabled by FreeNotification. |
| RemoveFreeNotifications | protected | Notifies all owned components of the owner component's imminent destruction. |
| RethinkHotkeys | public | Adjusts the captions of subitems so that every item has an accelerator and there are no duplicate accelerator keys. |
| RethinkLines | public | Removes superfluous separator lines from the Items property array. |
| SafeCallException | public | Handles exceptions in methods declared using the safecall calling convention. |
| SetAncestor | protected | Clears or sets csAncestor state in the component's ComponentState property. |
| SetBreak | protected | |
| SetCaption | protected | |
| SetChecked | protected | |
| SetChildOrder | protected | |
| SetDefault | protected | |
| SetDesigning | protected | Ensures that components inserted at design time have their design-mode flag set. |
| SetDesignInstance | protected | Ensures that components inserted at design time have their design-mode flag set. |
| SetEnabled | protected | |
| SetGroupIndex | protected | |
| SetImageIndex | protected | |
| SetImageName | protected | |
| SetInline | protected | Sets the csInline bit of the component's ComponentState property. |
| SetMenuIndex | protected | |
| SetName | protected | Sets the value of the Name property. |
| SetParentComponent | public | |
| SetRadioItem | protected | |
| SetShortCut | protected | |
| SetSubComponent | public | Identifies whether the component is a subcomponent. |
| SetVisible | protected | |
| ToString | public | Returns a string containing the class name. |
| UnitName | public | Returns the name of the unit where the class is defined. |
| UnitScope | public | Returns the class's unit scope. |
| UpdateAction | public | Updates the state of an action. |
| Updated | protected | Clears the csUpdating state in the component's ComponentState property when the component finishes updating. |
| UpdateItems | protected | Iterates through all the menu items of this menu item and updates them. |
| UpdateRegistry | protected | Provides the interface for a method that adds type library and version information to the Registry on components that implement COM interfaces. |
| Updating | protected | Sets the csUpdating state in the component's ComponentState property. |
| ValidateContainer | protected | Determines whether an object can be inserted into a container. |
| ValidateInsert | protected | Provides the interface for a method that validates a child component before it is inserted. |
| ValidateRename | protected | Ensures that renaming an owned component does not create a name conflict. |
| WriteState | protected | Writes the state of the component. |