CGXVerticalMenuCustomTextModel.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // CGXVerticalMenuCustomTextModel.h
  3. // CGXVerticalMenuView-OC
  4. //
  5. // Created by CGX on 2018/05/01.
  6. // Copyright © 2019 CGX. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface CGXVerticalMenuCustomTextModel : NSObject
  12. /** 文字显示*/
  13. @property (nonatomic, strong) NSString *text;
  14. /** 文字label颜色 [UIColor blackColor]; */
  15. @property (nonatomic, strong) UIColor *textColor;
  16. /** 文字背景颜 默认无 */
  17. @property (nonatomic, strong) UIColor *textBgColor;
  18. /** 文字字体大小 [UIFont systemFontOfSize:14] */
  19. @property (nonatomic, strong) UIFont *textFont;
  20. /** 文字上间距 默认 0 */
  21. @property (nonatomic, assign) CGFloat spaceTop;
  22. /** 文字下间距 默认 0 */
  23. @property (nonatomic, assign) CGFloat spaceBottom;
  24. /** 文字左间距 默认0 */
  25. @property (nonatomic, assign) CGFloat spaceLeft;
  26. /** 文字右间距 默认0 */
  27. @property (nonatomic, assign) CGFloat spaceRight;
  28. /* 默认剧中*/
  29. @property (nonatomic, assign) NSTextAlignment textAlignment;
  30. /* 默认一行。为1*/
  31. @property (nonatomic, assign) NSInteger numberOfLines;
  32. /** --cell边框--- */
  33. /** 下标对应文字背景颜 [UIColor redColor]; */
  34. @property (nonatomic, strong) UIColor *borderColor;
  35. @property (nonatomic, assign) CGFloat borderWidth;
  36. @property (nonatomic, assign) CGFloat borderRadius;
  37. @end
  38. NS_ASSUME_NONNULL_END