Resource Base
Table of contents

DSDrawingStyle

The DSDrawingStyle class represents the style attributes of the drawing items, including stroke color, fill color, text color, stroke width, and font.

Definition

Assembly: DynamsoftCore.xcframework

  • Objective-C
  • Swift
  1. @interface DSDrawingStyle : NSObject
    
  2. class DrawingStyle : NSObject
    

Attributes

Attributes Type Description
styleId NSInteger Get the style ID.
strokeColor UIColor * Set/get the stroke color.
fillColor UIColor * Set/get the fill color.
textColor UIColor * Set/get the text color.
strokeWidth CGFloat Set/get the stroke width (in pixel).
font UIFont * Set/get the font.

styleId

Get the style ID.

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

strokeColor

Set/get the stroke color.

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

fillColor

Set/get the fill color.

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

textColor

Set/get the text color.

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

strokeWidth

Set/get the stroke width (in pixel).

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

font

Set/get the font.

  • 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:

latest version

  • 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 +