|
WebExtensionsFixForwardSpacing Method
|
Corrects script alignment with a desired number of forward spaces.
Namespace: GSF.WebAssembly: 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
)
[<ExtensionAttribute>]
static member FixForwardSpacing :
script : string *
?spaces : int *
?forceFixed : bool
(* Defaults:
let _spaces = defaultArg spaces 4
let _forceFixed = defaultArg forceFixed false
*)
-> string
GSF.Web.WebExtensions.FixForwardSpacing = function(script, spaces, forceFixed);
View SourceParameters
- 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
StringScript 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