flash.ui

# ContextMenuClipboardItems - AS3

Package | flash.ui
Class | public final class ContextMenuClipboardItems
Inheritance | ContextMenuClipboardItems Object

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

The ContextMenuClipboardItems class lets you enable or disable the commands in the clipboard context menu.

Enable or disable the context menu clipboard commands using the `clipboardItems` property of the ContextMenu object. The `clipboardItems` property is an instance of this ContextMenuClipboardItems class. The clipboard context menu is shown in a context menu when the `clipboardMenu` property of the context menu is `true`, unless the context menu is for a TextField object. TextField objects control the display of the context menu and the state of its clipboard items automatically.

Related API Elements

ContextMenu.clipboardMenu

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | clear : Boolean Enables or disables the 'Delete' or 'Clear' item on the clipboard menu. | ContextMenuClipboardItems
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | copy : Boolean Enables or disables the 'Copy' item on the clipboard menu. | ContextMenuClipboardItems
|  | cut : Boolean Enables or disables the 'Cut' item on the clipboard menu. | ContextMenuClipboardItems
|  | paste : Boolean Enables or disables the 'Paste' item on the clipboard menu. | ContextMenuClipboardItems
|  | selectAll : Boolean Enables or disables the 'Select All' item on the clipboard menu. | ContextMenuClipboardItems

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | ContextMenuClipboardItems() Creates a new ContextMenuClipboardItems object. | ContextMenuClipboardItems
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Property Detail

### clear

property

`clear:Boolean`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

Enables or disables the 'Delete' or 'Clear' item on the clipboard menu. This should be enabled only if an object that can be cleared is selected.

Implementation
`public function get clear():Boolean`
`public function set clear(value:Boolean):void`

### copy

property

`copy:Boolean`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

Enables or disables the 'Copy' item on the clipboard menu. This should be enabled only if an object that can be copied is selected.

Implementation
`public function get copy():Boolean`
`public function set copy(value:Boolean):void`

### cut

property

`cut:Boolean`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

Enables or disables the 'Cut' item on the clipboard menu. This should be enabled only if an object that can be cut is selected.

Implementation
`public function get cut():Boolean`
`public function set cut(value:Boolean):void`

### paste

property

`paste:Boolean`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

Enables or disables the 'Paste' item on the clipboard menu. This should be enabled only if pastable data is on the clipboard.

Implementation
`public function get paste():Boolean`
`public function set paste(value:Boolean):void`

### selectAll

property

`selectAll:Boolean`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

Enables or disables the 'Select All' item on the clipboard menu. This should only be enabled in a context where a selection can be expanded to include all similar items, such as in a list or a text editing control.

Implementation
`public function get selectAll():Boolean`
`public function set selectAll(value:Boolean):void`
Constructor Detail

### ContextMenuClipboardItems

()
Constructor

`public function ContextMenuClipboardItems()`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10, AIR 1.5

Creates a new ContextMenuClipboardItems object.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00