# `GSGlyph propertyListValueFormat:options:error:`

*Instance Method*

A property-list representation using specified save options.

## Declaration

```swift
func propertyListValue(format: GSFormatVersion, options: GSSaveOptions = []) throws -> [String : Any]
```

```objc
- (NSDictionary<NSString *,id> *) propertyListValueFormat:(GSFormatVersion) format options:(GSSaveOptions) options error:(NSError **) error;
```

```python
propertyListValueFormat_options_error_(format: GSFormatVersion, options: GSSaveOptions) -> tuple[dict[str, object], NSError]
```

## Parameters

- `format` — The source format used for the representation.
- `options` — Options controlling the represented data.
- `error` — On return, an error that prevented encoding.

## Discussion

Property-list encoding supports format 3 and later. Only [`GSSaveOptions.GSSaveOptionWriteLastChange`](/Core/GlyphsCore/GSSaveOptions/GSSaveOptionWriteLastChange) affects the glyph representation.

## See Also

### Encoding

- [`GSGlyph propertyListValueFormat:error:`](/Core/GlyphsCore/GSGlyph/propertyListValueFormat:error:) — A property-list representation in a Glyphs source format.
- [`GSGlyph saveToFile:format:context:error:`](/Core/GlyphsCore/GSGlyph/saveToFile:format:context:error:) — Writes the glyph in Glyphs source syntax to an open file.

