FontPanel
Ancestors
- None
Descendants
- None
See Also
- None
Constructors
new
FontPanel
Description
Creates a new font panel window that is initially hidden.
Members
multiple
Description
Gets or sets whether multiple fonts can be selected.
selected
Description
Gets or sets the selected font.
visible
Description
Gets or sets whether the color panel is visible or hidden.
Methods
addEventListener(eventName, callback)
Description
Adds an event listener for various control level events. The first parameter is the name of the event, the second parameter is the function to call when the event happens (e.g., a callback).
Parameters
Name | Type | Description |
---|---|---|
eventName | string | The name of the event to start listening to. |
callback | function | The function that will be called when it occurs. |
removeEventListener(eventName, callback)
Description
Removes an event listener for various application level events. The first parameter is the name of the event, the second parameter is the function that was originally given as the callback for addEventListener.
Parameters
Name | Type | Description |
---|---|---|
eventName | string | The name of the event to stop listening to. |
callback | function | The function that would have been called. |
Events
fontchange
Description
Fires when the user selects a new font from the font panel.