Resource Base
Table of contents

DrawingStyle

The class of DrawingStyle. It stores the detailed styles of the drawing item.

  • Objective-C
  • Swift
  1. @interface DrawingStyle : NSObject
    
  2. class DrawingStyle : NSObject
    
Method Description
initWithId The constructor of the initWithId.
id The id of the DrawingStyle.
strokeColor The stroke color of the DrawingStyle.
fillColor The fill color of the DrawingStyle.
textColor The text color of the DrawingStyle.
strokeWidth The stroke width of the DrawingStyle.
font The font settings of the DrawingStyle.

 

initWithId

The constructor of the DrawingStyle.

  • Objective-C
  • Swift
  1. - (instancetype)initWithId:(NSInteger)id
               strokeColor:(UIColor*)strokeColor
               strokeWidth:(CGFloat)strokeWidth
                 fillColor:(UIColor*)fillColor
                 textColor:(UIColor*)textColor
                      font:(UIFont*) font;
    
  2. init(id styleId: Int, stroke strokeColor: UIColor, strokeWidth: CGFloat, fill fillColor: UIColor, textColor: UIColor, font: UIFont)
    

Remarks

Please use DrawingStyleManager.createDrawingStyle to create the drawing style.

 

id

The id of the DrawingStyle.

  • Objective-C
  • Swift
  1. @property (assign, nonatomic, readonly) NSInteger id;
    
  2. var styleId: Int { get }
    

 

strokeColor

The stroke color of the DrawingStyle.

  • Objective-C
  • Swift
  1. @property (assign, nonatomic) UIColor strokeColor;
    
  2. var strokeColor: UIColor { get set }
    

 

fillColor

The fill color of the DrawingStyle.

  • Objective-C
  • Swift
  1. @property (assign, nonatomic) UIColor fillColor;
    
  2. var fillColor: UIColor { get set }
    

 

textColor

The text color of the DrawingStyle.

  • Objective-C
  • Swift
  1. @property (assign, nonatomic) UIColor textColor;
    
  2. var textColor: UIColor { get set }
    

 

strokeWidth

The stroke width of the DrawingStyle.

  • Objective-C
  • Swift
  1. @property (assign, nonatomic) CGFloat strokeWidth;
    
  2. var strokeWidth: CGFloat { get set }
    

 

font

The font settings of the DrawingStyle.

  • Objective-C
  • Swift
  1. @property (nonatomic, copy) UIFont *font;
    
  2. var font: UIFont { get set }
    

 

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.0.3

  • Latest version
  • Version 4.x
    • Version 4.2.0
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.0.3
    • Version 3.0.2
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.21
    • Version 2.3.20
    • Version 2.3.12
    • Version 2.3.11
    • Version 2.3.10
    • Version 2.3.5
    • Version 2.3.4
    • Version 2.3.3
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.1
    • Version 2.0.0
Change +