PowerShellFormattingInfo Class

Provides formatting information for Microsoft PowerShell scripts.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
public class PowerShellFormattingInfo : IFormattingInfo, 
	ICustomFormattingInfo
Inheritance
Object    PowerShellFormattingInfo
Implements
ICustomFormattingInfo, IFormattingInfo

Remarks

This formatter will use System.Management.Automation to tokenize PowerShell code for more accurate formatting. To use this, you must either reference System.Management.Automation in your project, or manually load the assembly and pass it to the constructor.

If the System.Management.Automation.PSParser type could not used, regular expression based formatting will be used and the UsedFallbackFormatting will be set to after the formatting operation.

Constructors

PowerShellFormattingInfo Initializes a new instance of the PowerShellFormattingInfo class.

Properties

CaseSensitive Gets a value that indicates whether the language to be formatted is case sensitive.
ForceFallbackFormatting Gets or sets a value that indicates whether regular expression based formatting should be used even if System.Management.Automation.PSParser is available.
Patterns Gets a list of regular expression patterns used to identify elements of the code.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FormatCode Formats the specified source code.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also