Instance Method
setCustomValue(_:forKey:) setCustomValue:forKey: setCustomValue_forKey_
Sets the value of a custom parameter.
Declaration
func setCustomValue(_ value: Any?, forKey key: String)Declaration
- (void) setCustomValue:(id) value forKey:(NSString *) key;Declaration
setCustomValue_forKey_(value: object, key: str)Parameters
valueThe value to store, or
nilto remove the custom parameter.keyThe custom parameter name.
Discussion
An existing custom parameter with the same name is updated. Otherwise a new custom parameter is added. Passing nil removes the first matching custom parameter.
See Also
Custom Parameters
Custom parameters stored in the font.
The number of custom parameters.
The custom parameter at an index.
The first custom parameter with a name.
The first active custom parameter with a name.
The value of an active custom parameter.
The Boolean value of an active custom parameter.
The color value of an active custom parameter.
Adds a custom parameter.
Inserts a custom parameter at an index.
Removes a custom parameter.
Removes the custom parameter at an index.
Removes the first custom parameter with a name.
Replaces the custom parameter at an index.
Invalidates cached active custom parameter values.