parse

fun parse(string: String): ContentFormats?

Parses the given @string into GdkContentFormats and returns the formats.

Strings printed via method@Gdk.ContentFormats.to_string can be read in again successfully using this function.

If @string does not describe valid content formats, null is returned.

Return

the content formats if @string is valid

Since

4.4

Parameters

string

the string to parse