Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTTextStyle(CPTPlatformSpecificTextStyleExtensions) Category Reference

Platform-specific extensions to CPTTextStyle. More...

#import <CPTTextStyle.h>

+ Collaboration diagram for CPTTextStyle(CPTPlatformSpecificTextStyleExtensions):

Public Class Methods

Factory Methods
(nonnull instancetype) + textStyleWithAttributes:
 Creates and returns a new CPTTextStyle instance initialized from a dictionary of text attributes. More...
 

Properties

CPTDictionaryattributes
 A dictionary of standard text attributes suitable for formatting an NSAttributedString. More...
 

Detailed Description

Platform-specific extensions to CPTTextStyle.

Method Documentation

◆ textStyleWithAttributes:

+ (nonnull instancetype) textStyleWithAttributes: (nullable CPTDictionary *)  attributes

Creates and returns a new CPTTextStyle instance initialized from a dictionary of text attributes.

The text style will be initalized with values associated with the following keys:

Properties associated with missing keys will be inialized to their default values.

Parameters
attributesA dictionary of standard text attributes.
Returns
A new CPTTextStyle instance.

Extends class CPTTextStyle.

Property Documentation

◆ attributes

- (nonnull CPTDictionary *) attributes
readnonatomicassign

A dictionary of standard text attributes suitable for formatting an NSAttributedString.

The dictionary will contain values for the following keys that represent the receiver's text style:

Extends class CPTTextStyle.


The documentation for this category was generated from the following files: