public override int GetSize()
 {
     return(DocumentComponent.GetSize() + Size);
 }
 public BorderDecorator(DocumentComponent documentComponent) : base(documentComponent)
 {
     Size = 1;
 }
 public override void DisplayDocument()
 {
     DocumentComponent.DisplayDocument();
     Console.WriteLine(" + Border");
 }
Exemple #4
0
 public FontDecorator(DocumentComponent documentComponent) : base(documentComponent)
 {
     Size = 5;
 }
 public HeaderAndFooterDecorator(DocumentComponent documentComponent) : base(documentComponent)
 {
     Size = 4;
 }
 public override void DisplayDocument()
 {
     DocumentComponent.DisplayDocument();
     Console.WriteLine(" + HeaderAndFooter");
 }
 public ScrollBarDecorator(DocumentComponent documentComponent) : base(documentComponent)
 {
     Size = 2;
 }