style_properties
Style Properties
Styles are used to specify font, size, color, …
E.g. CS_FontDefaults with parameter 2 set to 1 (day numbers, CS_Attr_Days = 1) modifies style 5 (CS_Style_DayNumber = 5), either global or for the specified area.
Or you can manipulate the styles with the CS_Get/SetStyle@Property commands.
See also CS_Event_ClearStyle in Event event properties, and Predefined Styles.
property constant | can read | can write | persi stent | type | default | min | max | usage |
---|---|---|---|---|---|---|---|---|
CS_Area_Kind | √ | text | Object kind = “Style” | |||||
CS_Style_BackColor | √ | √ | √ | color | #00FFFFFF | Background color Transparent (no color) |
||
CS_Style_BaseLineShift | √ | √ | √ | real | 0 | -100 | 256 | Base line shift |
CS_Style_BaseStyleID | √ | √ | √ | int | 0 | 0 | Style: style ID Base Style to use for this object When set, all overriden properties are ignored |
|
CS_Style_Bold | √ | √ | bool | no | Font style - bold Bit 0 of CS_Style_Full |
|||
CS_Style_Features | √ | √ | √ | int | 1 | 1 | Style: defined (overriden) properties Which properties of the parent style are overridden |
|
CS_Style_FontName | √ | √ | √ | text | Font name Segoe UI on Windows, Lucida Grande on MacOS |
|||
CS_Style_Full | √ | √ | √ | int | 0 | 0 | 15 | Font style |
CS_Style_HorAlign | √ | √ | √ | int | 0 | 0 | 5 | Horizontal alignment 0 - default 1 = left 2 = center 3 = right 4 = justify 5 = full justify |
CS_Style_HorizontalScale | √ | √ | √ | real | 1 | 0,1 | 100 | Horizontal scale |
CS_Style_ID | √ | int | Style's ID | |||||
CS_Style_Italic | √ | √ | bool | no | Font style - italic Bit 1 of CS_Style_Full |
|||
CS_Style_LineSpacing | √ | √ | √ | real | 1 | 0,5 | 10 | Line spacing |
CS_Style_Month | √ | √ | √ | color | Color of the month name in year view Only text color is used |
|||
CS_Style_Name | √ | √ | √ | text | Empty for custom styles | Style name | ||
CS_Style_Rotation | √ | √ | √ | real | 0 | -360 | 360 | Rotation of text |
CS_Style_Size | √ | √ | √ | real | 9 | 4 | 128 | Font size |
CS_Style_StrikeThrough | √ | √ | bool | no | Font style - strike-through Bit 3 of CS_Style_Full |
|||
CS_Style_TextColor | √ | √ | √ | color | #FF000000 | Font color Black |
||
CS_Style_Underline | √ | √ | bool | no | Font style - underline Bit 2 of CS_Style_Full |
|||
CS_Style_VertAlign | √ | √ | √ | int | 0 | 0 | 3 | Vertical alignment 0 = default 1 = top 2 = center 3 = bottom |
CS_Style_XML | √ | √ | text | XML of a style |
style_properties.txt · Last modified: 2022/01/31 12:00 by cs_admin