Click or drag to resize

Menu Class

Represents a component which provides the data and functionality of a menu.
Inheritance Hierarchy

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public sealed class Menu : Component

The Menu type exposes the following members.

Properties
  NameDescription
Public propertyCol0Header
Gets or sets the caption of the left column in this menu.
Public propertyCol0Width
Gets the width of the left column in this menu.
Public propertyCol1Header
Gets or sets the caption of the right column in this menu.
Public propertyCol1Width
Gets the width of the right column in this menu.
Public propertyColumns
Gets the number of columns in this menu.
Public propertyEntity
Gets the entity to which this component has been attached.
(Inherited from Component.)
Public propertyIsComponentAlive
Gets a value indicating whether this component is alive (has not been destroyed).
(Inherited from Component.)
Public propertyParent
Gets the parent entity of the entity to which this component has been attached.
(Inherited from Component.)
Public propertyPosition
Gets the position of this menu.
Public propertyTitle
Gets the title of this menu.
Top
Methods
  NameDescription
Public methodAddComponentT
Adds a component of the specified type T to the entity.
(Inherited from Component.)
Public methodAddComponentT(Object)
Adds a component of the specified type T to the entity with the specified constructor args.
(Inherited from Component.)
Public methodAddItem
Adds an item to this menu.
Public methodDestroy
Destroys this component.
(Inherited from Component.)
Public methodDestroyComponentsT
Destroys the components of the specified type T attached to the entity.
(Inherited from Component.)
Public methodDestroyEntity
Destroys the entity.
(Inherited from Component.)
Public methodDisable
Disable input for this menu. Any item will lose the ability to be selected.
Public methodDisableRow
Disable a specific row in this menu for all players. It will be grayed-out and can't be selected by players.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetComponentT
Gets a component of the specified type T attached to the entity.
(Inherited from Component.)
Public methodGetComponentInChildrenT
Gets a component of the specified type T attached to a child entity of the entity using a depth first search.
(Inherited from Component.)
Public methodGetComponentInParentT
Gets a component of the specified type T attached to a parent entity of the entity.
(Inherited from Component.)
Public methodGetComponentsT
Gets all components of the specified type T attached to the entity.
(Inherited from Component.)
Public methodGetComponentsInChildrenT
Gets all components of the specified type T attached to a child entity of the entity.
(Inherited from Component.)
Public methodGetComponentsInParentT
Gets all components of the specified type T attached to a parent entity of the entity.
(Inherited from Component.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Hides this menu for the specified player.
Public methodShow
Shows this menu for the specified player.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also