diff --git a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs index 1a548ce8fd..3cf59a8ef5 100644 --- a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs +++ b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs @@ -248,12 +248,12 @@ namespace Microsoft.Management.UI.Internal /// Splits the string adding indentation before each line /// /// string to add indentation to - /// number of indentations + /// number of indentations /// the string indented - private static string AddIndent(string str, int numberOfIdents) + private static string AddIndent(string str, int numberOfIndents) { StringBuilder indent = new StringBuilder(); - indent.Append(' ', numberOfIdents * HelpParagraphBuilder.IndentSize); + indent.Append(' ', numberOfIndents * HelpParagraphBuilder.IndentSize); return HelpParagraphBuilder.AddIndent(str, indent.ToString()); } @@ -421,22 +421,22 @@ namespace Microsoft.Management.UI.Internal parameterNameOptionalCloseBrace = "]"; } - string paramterPrefix = String.Format( + string parameterPrefix = String.Format( CultureInfo.CurrentCulture, "{0}{1}-", parameterOptionalOpenBrace, parameterNameOptionalOpenBrace); - this.AddText(paramterPrefix, false); + this.AddText(parameterPrefix, false); this.AddText(parameterName, true); - string paramterSuffix = String.Format( + string parameterSuffix = String.Format( CultureInfo.CurrentCulture, "{0} {1}{2} ", parameterNameOptionalCloseBrace, parameterType, parameterOptionalCloseBrace); - this.AddText(paramterSuffix, false); + this.AddText(parameterSuffix, false); } string commonParametersText = String.Format( diff --git a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs index ccbca3307a..1ae7aaf0f9 100644 --- a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs +++ b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs @@ -31,7 +31,7 @@ namespace Microsoft.Management.UI.Internal /// /// The text spans that should be highlighted /// - private List highlighedSpans; + private List highlightedSpans; /// /// The text displayed @@ -56,7 +56,7 @@ namespace Microsoft.Management.UI.Internal this.paragraph = paragraph; this.boldSpans = new List(); - this.highlighedSpans = new List(); + this.highlightedSpans = new List(); this.textBuilder = new StringBuilder(); } @@ -72,7 +72,7 @@ namespace Microsoft.Management.UI.Internal /// internal int HighlightCount { - get { return this.highlighedSpans.Count; } + get { return this.highlightedSpans.Count; } } /// @@ -100,7 +100,7 @@ namespace Microsoft.Management.UI.Internal int currentBoldIndex = 0; TextSpan? currentBoldSpan = this.boldSpans.Count == 0 ? (TextSpan?)null : this.boldSpans[0]; int currentHighlightedIndex = 0; - TextSpan? currentHighlightedSpan = this.highlighedSpans.Count == 0 ? (TextSpan?)null : this.highlighedSpans[0]; + TextSpan? currentHighlightedSpan = this.highlightedSpans.Count == 0 ? (TextSpan?)null : this.highlightedSpans[0]; bool currentBold = false; bool currentHighlighted = false; @@ -115,7 +115,7 @@ namespace Microsoft.Management.UI.Internal ParagraphBuilder.MoveSpanToPosition(ref currentBoldIndex, ref currentBoldSpan, i, this.boldSpans); newBold = currentBoldSpan == null ? false : currentBoldSpan.Value.Contains(i); - ParagraphBuilder.MoveSpanToPosition(ref currentHighlightedIndex, ref currentHighlightedSpan, i, this.highlighedSpans); + ParagraphBuilder.MoveSpanToPosition(ref currentHighlightedIndex, ref currentHighlightedSpan, i, this.highlightedSpans); newHighlighted = currentHighlightedSpan == null ? false : currentHighlightedSpan.Value.Contains(i); if (newBold != currentBold || newHighlighted != currentHighlighted) @@ -142,7 +142,7 @@ namespace Microsoft.Management.UI.Internal /// true if we should search whole word only internal void HighlightAllInstancesOf(string search, bool caseSensitive, bool wholeWord) { - this.highlighedSpans.Clear(); + this.highlightedSpans.Clear(); if (search == null || search.Trim().Length == 0) { @@ -216,7 +216,7 @@ namespace Microsoft.Management.UI.Internal internal void ResetAllText() { this.boldSpans.Clear(); - this.highlighedSpans.Clear(); + this.highlightedSpans.Clear(); this.textBuilder.Clear(); } @@ -298,7 +298,7 @@ namespace Microsoft.Management.UI.Internal throw new ArgumentOutOfRangeException("length"); } - this.highlighedSpans.Add(new TextSpan(start, length)); + this.highlightedSpans.Add(new TextSpan(start, length)); } /// diff --git a/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs b/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs index fa2667892f..5825c7b5d5 100644 --- a/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs +++ b/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs @@ -70,7 +70,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal /// /// Field used for the CommonParameters parameter. /// - private ParameterSetViewModel comonParameters; + private ParameterSetViewModel commonParameters; /// /// The ShowCommandCommandInfo this model is based on @@ -239,7 +239,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal /// public ParameterSetViewModel CommonParameters { - get { return this.comonParameters; } + get { return this.commonParameters; } } /// @@ -537,7 +537,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal } List commonParametersList = commonParametersTable.Values.ToList(); - returnValue.comonParameters = new ParameterSetViewModel(String.Empty, commonParametersList); + returnValue.commonParameters = new ParameterSetViewModel(String.Empty, commonParametersList); returnValue.parameterSets.Sort(returnValue.Compare);