Click or drag to resize

WebExtensionsFixForwardSpacing Method

Corrects script alignment with a desired number of forward spaces.

Namespace: GSF.Web
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public static string FixForwardSpacing(
	this string script,
	int spaces = 4,
	bool forceFixed = false
)
View Source

Parameters

script  String
Script text.
spaces  Int32  (Optional)
Desired forward spaces.
forceFixed  Boolean  (Optional)
Determines if exact forward spacing should forced on each line - when true, existing hierarchy will not be preserved.

Return Value

String
Script with corrected forward alignment.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also