[Home] Type Microsoft.FSharp.Text.StructuredFormat.FormatOptions


A record of options to control structural formatting. For F# Interactive properties matching those of this value can be accessed via the 'fsi' value. Floating Point format given in the same format accepted by System.Double.ToString, e.g. f6 or g15. If ShowProperties is set the printing process will evaluate properties of the values being displayed. This may cause additional computation. The ShowIEnumerable is set the printing process will force the evalution of IEnumerable objects to a small, finite depth, as determined by the printing parameters. This may lead to additional computation being performed during printing. From F# Interactive the default settings can be adjusted using, for example,
   open Microsoft.FSharp.Compiler.Interactive.Settings;;
   setPrintWidth 120;;
 

Full Type Signature

type FormatOptions = {FloatingPointFormat: string;
                      AttributeProcessor: string -> (string * string) list -> bool -> unit;
                      PrintIntercepts: (IEnvironment -> obj -> Layout option) list;
                      FormatProvider: IFormatProvider;
                      PrintWidth: int;
                      PrintDepth: int;
                      PrintLength: int;
                      ShowProperties: bool;
                      ShowIEnumerable: bool;}
                     with
                       static member Default : FormatOptions
                     end

Static Members

MemberDescription
member Default : FormatOptions

See Also

Microsoft.FSharp.Text.StructuredFormat


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19