CodeGlyphX logo
CodeGlyphX

API Reference

Class

OutputFormatInfo

Namespace CodeGlyphX.Rendering
Assembly CodeGlyphX
Modifiers static

Helpers for output format detection and metadata.

Inheritance

  • Object
  • OutputFormatInfo

Methods

public static OutputFormat FromExtension(String extension) #
Returns: OutputFormat

Detects the output format from a file extension (with or without a leading dot).

Parameters

extension System.String requiredposition: 0
public static OutputFormat FromPath(String path) #
Returns: OutputFormat

Detects the output format from a file path.

Parameters

path System.String requiredposition: 0
public static String GetDefaultExtension(OutputFormat format) #
Returns: String

Returns the default file extension (without a leading dot) for a format.

Parameters

format CodeGlyphX.Rendering.OutputFormat requiredposition: 0
public static OutputKind GetKind(OutputFormat format) #
Returns: OutputKind

Returns the output kind for a given format.

Parameters

format CodeGlyphX.Rendering.OutputFormat requiredposition: 0
public static String GetMimeType(OutputFormat format) #
Returns: String

Returns a MIME type for the format when known.

Parameters

format CodeGlyphX.Rendering.OutputFormat requiredposition: 0
public static Boolean IsBinary(OutputFormat format) #
Returns: Boolean

Returns true when the format is binary.

Parameters

format CodeGlyphX.Rendering.OutputFormat requiredposition: 0
public static Boolean IsText(OutputFormat format) #
Returns: Boolean

Returns true when the format is textual.

Parameters

format CodeGlyphX.Rendering.OutputFormat requiredposition: 0
public static OutputFormat Resolve(String path, OutputFormat fallback) #
Returns: OutputFormat

Detects the format from a path and falls back to a default if unknown.

Parameters

path System.String requiredposition: 0
fallback CodeGlyphX.Rendering.OutputFormat requiredposition: 1