BaseBooleanImageElement Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class is used to render a string + a state in the form of an image.
public abstract class BaseBooleanImageElement : MonoTouch.Dialog.BoolElement
type BaseBooleanImageElement = class
inherit BoolElement
- Inheritance
- Derived
Remarks
It is abstract to avoid making this element keep two pointers for the state images, saving 8 bytes per slot. The more derived class "BooleanImageElement" shows one way to implement this by keeping two pointers, a better implementation would return pointers to images that were preloaded and are static. A subclass only needs to implement the GetImage method.
Constructors
BaseBooleanImageElement(String, Boolean) |
Fields
Caption |
The caption to display for this given element (Inherited from Element) |
Parent |
Handle to the container object. (Inherited from Element) |
Properties
CellKey |
Subclasses that override the GetCell method should override this method as well |
IndexPath |
Returns the IndexPath of a given element. This is only valid for leaf elements, it does not work for a toplevel RootElement or a Section of if the Element has not been attached yet. (Inherited from Element) |
Value |
The value of this boolean element. (Inherited from BoolElement) |
Methods
Deselected(DialogViewController, UITableView, NSIndexPath) | (Inherited from Element) |
Dispose() | (Inherited from Element) |
Dispose(Boolean) | (Inherited from Element) |
GetActiveCell() | (Inherited from Element) |
GetCell(UITableView) | |
GetContainerTableView() | (Inherited from Element) |
GetImage() | |
GetImmediateRootElement() |
If the cell is attached will return the immediate RootElement (Inherited from Element) |
Matches(String) |
Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string. (Inherited from Element) |
Selected(DialogViewController, UITableView, NSIndexPath) | (Inherited from Element) |
Summary() |
Returns a localized version of the boolean value (on/off). (Inherited from BoolElement) |
Events
Tapped | |
ValueChanged |
Event raised when the Value property changes. (Inherited from BoolElement) |