Instance Method
setAttributes(_:format:) setAttributes:format: setAttributes_format_
Replaces all attributes using values encoded for a file format version.
Declaration
func setAttributes(_ attributes: [GSShapeKey : Any]?, format: GSFormatVersion)Declaration
- (void) setAttributes:(NSDictionary<NSString *,id> *) attributes format:(GSFormatVersion) format;Declaration
setAttributes_format_(attributes: dict[str, object], format: GSFormatVersion)Parameters
formatThe file format version used to decode attribute values.
Discussion
Replacing the attributes with a dictionary registers undo and notifies the parent.
See Also
Attributes
Additional values associated with the object.
The number of attributes.
The value for an attribute key, or
nilif no value is set.Sets or removes an attribute.
Replaces all attributes without registering undo or notifying the parent.
Removes an attribute.