C# Class ComponentFactory.Krypton.Toolkit.ViewLeaf

Extends the base class by implementing an end node view.
Inheritance: ViewBase
ファイルを表示 Open project: Cocotteseb/Krypton

Public Methods

Method Description
Add ( ViewBase item ) : void

Append a view to the collection.

Clear ( ) : void

Remove all views from the collection.

Contains ( ViewBase item ) : bool

Determines whether the collection contains the view.

ContainsRecurse ( ViewBase item ) : bool

Determines whether any part of the view hierarchy is the specified view.

CopyTo ( ViewBase array, int arrayIndex ) : void

Copies views to specified array starting at particular index.

EvalTransparentPaint ( ViewContext context ) : bool

Evaluate the need for drawing transparent areas.

GetEnumerator ( ) : IEnumerator

Shallow enumerate forward over children of the element.

IndexOf ( ViewBase item ) : int

Determines the index of the specified view in the collection.

Insert ( int index, ViewBase item ) : void

Inserts a view to the collection at the specified index.

Recurse ( ) : IEnumerable

Deep enumerate forward over children of the element.

Remove ( ViewBase item ) : bool

Removes first occurance of specified view.

RemoveAt ( int index ) : void

Removes the view at the specified index.

Render ( RenderContext context ) : void

Perform a render of the elements.

Reverse ( ) : IEnumerable

Shallow enumerate backwards over children of the element.

ReverseRecurse ( ) : IEnumerable

Deep enumerate backwards over children of the element.

ToString ( ) : string

Obtains the String representation of this instance.

ViewFromPoint ( Point pt ) : ViewBase

Find the view that contains the specified point.

this ( int index ) : ViewBase

Gets or sets the view at the specified index.

Protected Methods

Method Description
ViewLeaf ( ) : System

Initialize a new instance of the ViewLeaf class.

Method Details

Add() public method

Append a view to the collection.
public Add ( ViewBase item ) : void
item ViewBase ViewBase reference.
return void

Clear() public method

Remove all views from the collection.
public Clear ( ) : void
return void

Contains() public method

Determines whether the collection contains the view.
public Contains ( ViewBase item ) : bool
item ViewBase ViewBase reference.
return bool

ContainsRecurse() public method

Determines whether any part of the view hierarchy is the specified view.
public ContainsRecurse ( ViewBase item ) : bool
item ViewBase ViewBase reference.
return bool

CopyTo() public method

Copies views to specified array starting at particular index.
public CopyTo ( ViewBase array, int arrayIndex ) : void
array ViewBase Target array.
arrayIndex int Starting array index.
return void

EvalTransparentPaint() public method

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
return bool

GetEnumerator() public method

Shallow enumerate forward over children of the element.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

IndexOf() public method

Determines the index of the specified view in the collection.
public IndexOf ( ViewBase item ) : int
item ViewBase ViewBase reference.
return int

Insert() public method

Inserts a view to the collection at the specified index.
public Insert ( int index, ViewBase item ) : void
index int Insert index.
item ViewBase ViewBase reference.
return void

Recurse() public method

Deep enumerate forward over children of the element.
public Recurse ( ) : IEnumerable
return IEnumerable

Remove() public method

Removes first occurance of specified view.
public Remove ( ViewBase item ) : bool
item ViewBase ViewBase reference.
return bool

RemoveAt() public method

Removes the view at the specified index.
public RemoveAt ( int index ) : void
index int Remove index.
return void

Render() public method

Perform a render of the elements.
public Render ( RenderContext context ) : void
context RenderContext Rendering context.
return void

Reverse() public method

Shallow enumerate backwards over children of the element.
public Reverse ( ) : IEnumerable
return IEnumerable

ReverseRecurse() public method

Deep enumerate backwards over children of the element.
public ReverseRecurse ( ) : IEnumerable
return IEnumerable

ToString() public method

Obtains the String representation of this instance.
public ToString ( ) : string
return string

ViewFromPoint() public method

Find the view that contains the specified point.
public ViewFromPoint ( Point pt ) : ViewBase
pt Point Point in view coordinates.
return ViewBase

ViewLeaf() protected method

Initialize a new instance of the ViewLeaf class.
protected ViewLeaf ( ) : System
return System

this() public method

Gets or sets the view at the specified index.
public this ( int index ) : ViewBase
index int ViewBase index.
return ViewBase