MSFTextStyle

Objective-C


@interface MSFTextStyle : MSFLabelStyle

Swift

class MSFTextStyle : MSFLabelStyle

A style for text labels. Contains attributes for configuring how the text label is drawn on the screen.

  • Returns the font’s color.

    Declaration

    Objective-C

    - (MSFColor *)getFontColor;

    Swift

    func getFontColor() -> MSFColor!

    Return Value

    The color of the font.

  • Returns the font’s name.

    Declaration

    Objective-C

    - (NSString *)getFontName;

    Swift

    func getFontName() -> String!

    Return Value

    The platform dependent name of the font.

  • Returns the text field variable to use.

    Declaration

    Objective-C

    - (NSString *)getTextField;

    Swift

    func getTextField() -> String!

    Return Value

    The text field variable.

  • Returns the font’s size.

    Declaration

    Objective-C

    - (float)getFontSize;

    Swift

    func getFontSize() -> Float

    Return Value

    The size of the font in points.

  • Returns the state of the ‘break lines’ flag.

    Declaration

    Objective-C

    - (BOOL)isBreakLines;

    Swift

    func isBreakLines() -> Bool

    Return Value

    The state of the ‘break lines’ flag.

  • Returns the margins for the text.

    Declaration

    Objective-C

    - (MSFTextMargins *)getTextMargins;

    Swift

    func getTextMargins() -> MSFTextMargins!

    Return Value

    The margins for the text.

  • Returns the color of the stroke.

    Declaration

    Objective-C

    - (MSFColor *)getStrokeColor;

    Swift

    func getStrokeColor() -> MSFColor!

    Return Value

    The color of the stroke around the text.

  • Returns the width of the stroke.

    Declaration

    Objective-C

    - (float)getStrokeWidth;

    Swift

    func getStrokeWidth() -> Float

    Return Value

    The width of the stroke around the text.

  • Returns the color of the border.

    Declaration

    Objective-C

    - (MSFColor *)getBorderColor;

    Swift

    func getBorderColor() -> MSFColor!

    Return Value

    The color of the border around the text.

  • Returns the width of the border.

    Declaration

    Objective-C

    - (float)getBorderWidth;

    Swift

    func getBorderWidth() -> Float

    Return Value

    The width of the border around the text.

  • Returns the background color of the text.

    Declaration

    Objective-C

    - (MSFColor *)getBackgroundColor;

    Swift

    func getBackgroundColor() -> MSFColor!

    Return Value

    The background color of the text.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()