Represents the core element that can be decorated. Note that this class implements the IRenderElement but otherwise has no knowledge of any of the decorators that might be applied. More...
Public Member Functions | |
TextElement (string element) | |
Constructor. | |
string | Render () |
Render this element as a string. | |
string | Render () |
Render this element as a string. | |
Private Attributes | |
string | _elementText |
Represents the core element that can be decorated. Note that this class implements the IRenderElement but otherwise has no knowledge of any of the decorators that might be applied.
This class wraps a string and does nothing other than return the string. This way, this class can be decorated because it implements the IRenderElement interface.
Definition at line 182 of file Decorator_Classes.cs.
|
inline |
Constructor.
element | The text to be rendered. |
Definition at line 190 of file Decorator_Classes.cs.
References TextElement._elementText.
|
inline |
Render this element as a string.
Implements IRenderElement.
Definition at line 201 of file Decorator_Classes.cs.
References TextElement._elementText.
|
private |
Definition at line 184 of file Decorator_Classes.cs.
Referenced by TextElement.Render(), and TextElement.TextElement().