From 49058b5423e72e0c55d76a5e405c890a6a04950a Mon Sep 17 00:00:00 2001 From: Peter Forstmeier Date: Wed, 13 Jul 2011 07:45:49 +0200 Subject: [PATCH] Typos --- .../Project/WPF/FixedDocumentCreator.cs | 95 +++++++++---------- 1 file changed, 44 insertions(+), 51 deletions(-) diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs index 38658c385f..c0285e6d4e 100644 --- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs +++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs @@ -281,57 +281,50 @@ namespace ICSharpCode.Reports.Core.WPF } - private void SetContendAlignment(TextBlock textBlock,TextStyleDecorator decorator) - { - - switch (decorator.ContentAlignment) - { - case ContentAlignment.TopLeft: - textBlock.VerticalAlignment = VerticalAlignment.Top; - textBlock.TextAlignment = TextAlignment.Left; - - break; - case ContentAlignment.TopCenter: - textBlock.VerticalAlignment = VerticalAlignment.Top; - textBlock.TextAlignment = TextAlignment.Center; - - break; - case ContentAlignment.TopRight: - textBlock.VerticalAlignment = VerticalAlignment.Top; - textBlock.TextAlignment = TextAlignment.Right; - - break; - // Middle - case ContentAlignment.MiddleLeft: - textBlock.VerticalAlignment = VerticalAlignment.Center; - textBlock.TextAlignment = TextAlignment.Left; - - break; - case ContentAlignment.MiddleCenter: - textBlock.VerticalAlignment = VerticalAlignment.Center; - textBlock.TextAlignment = TextAlignment.Center; - - break; - case ContentAlignment.MiddleRight: - textBlock.VerticalAlignment = VerticalAlignment.Center; - textBlock.TextAlignment = TextAlignment.Right; - - break; - //Bottom - case ContentAlignment.BottomLeft: - textBlock.VerticalAlignment = VerticalAlignment.Bottom; - textBlock.TextAlignment = TextAlignment.Left; - break; - case ContentAlignment.BottomCenter: - textBlock.VerticalAlignment = VerticalAlignment.Bottom; - textBlock.TextAlignment = TextAlignment.Center; - break; - case ContentAlignment.BottomRight: - textBlock.VerticalAlignment = VerticalAlignment.Bottom; - textBlock.TextAlignment = TextAlignment.Right; - break; - } - } + private void SetContendAlignment(TextBlock textBlock,TextStyleDecorator decorator) + { + switch (decorator.ContentAlignment) + { + case ContentAlignment.TopLeft: + textBlock.VerticalAlignment = VerticalAlignment.Top; + textBlock.TextAlignment = TextAlignment.Left; + break; + case ContentAlignment.TopCenter: + textBlock.VerticalAlignment = VerticalAlignment.Top; + textBlock.TextAlignment = TextAlignment.Center; + break; + case ContentAlignment.TopRight: + textBlock.VerticalAlignment = VerticalAlignment.Top; + textBlock.TextAlignment = TextAlignment.Right; + break; + // Middle + case ContentAlignment.MiddleLeft: + textBlock.VerticalAlignment = VerticalAlignment.Center; + textBlock.TextAlignment = TextAlignment.Left; + break; + case ContentAlignment.MiddleCenter: + textBlock.VerticalAlignment = VerticalAlignment.Center; + textBlock.TextAlignment = TextAlignment.Center; + break; + case ContentAlignment.MiddleRight: + textBlock.VerticalAlignment = VerticalAlignment.Center; + textBlock.TextAlignment = TextAlignment.Right; + break; + //Bottom + case ContentAlignment.BottomLeft: + textBlock.VerticalAlignment = VerticalAlignment.Bottom; + textBlock.TextAlignment = TextAlignment.Left; + break; + case ContentAlignment.BottomCenter: + textBlock.VerticalAlignment = VerticalAlignment.Bottom; + textBlock.TextAlignment = TextAlignment.Center; + break; + case ContentAlignment.BottomRight: + textBlock.VerticalAlignment = VerticalAlignment.Bottom; + textBlock.TextAlignment = TextAlignment.Right; + break; + } + } void SetFont(TextBlock textBlock, TextStyleDecorator styleDecorator)