Design Pattern Examples
Overview of object-oriented design patterns
Decorator_Classes.cs File Reference

The IRenderElement interface, the Decorator base class, TextElement class, and the concrete decorator classes used in the Decorator pattern. More...

Go to the source code of this file.

Classes

interface  IRenderElement
 Represents an element that can be rendered in text. All decorators and the core element class implement this interface. More...
 
class  Decorator
 Represents the base class of all decorators and is responsible for handling the wrapped element being decorated. More...
 
class  WhiteBackgroundDecorator
 Represents the WhiteBackground decorator, which changes the background color of the wrapped element to white. More...
 
class  UnderlineDecorator
 Represents the Underline decorator, which underlines the wrapped content. More...
 
class  RedForegroundDecorator
 Represents the RedForeground decorator, which renders the wrapped content as red text. More...
 
class  TextElement
 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...
 

Namespaces

namespace  DesignPatternExamples_csharp
 The namespace containing all Design Pattern Examples implemented in C#.
 

Detailed Description

The IRenderElement interface, the Decorator base class, TextElement class, and the concrete decorator classes used in the Decorator pattern.

Definition in file Decorator_Classes.cs.