User Tools

Site Tools


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 defaultmin max usage
CS_Area_Kind √ text Object kind = “Style”
CS_Style_BackColor √ √ √ color#00FFFFFF Background color
Transparent (no color)
CS_Style_BaseLineShift √ √ √ real0-100256Base line shift
CS_Style_BaseStyleID √ √ √ int00 Style: style ID
Base Style to use for this object
When set, all overriden properties are ignored
CS_Style_Bold √ √ boolno Font style - bold
Bit 0 of CS_Style_Full
CS_Style_Features √ √ √ int11 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 √ √ √ int0015Font style
CS_Style_HorAlign √ √ √ int005Horizontal alignment
0 - default
1 = left
2 = center
3 = right
4 = justify
5 = full justify
CS_Style_HorizontalScale √ √ √ real10,1100Horizontal scale
CS_Style_ID √ int Style's ID
CS_Style_Italic √ √ boolno Font style - italic
Bit 1 of CS_Style_Full
CS_Style_LineSpacing √ √ √ real10,510Line spacing
CS_Style_Month √ √ √ color Color of the month name in year view
Only text color is used
CS_Style_Name √ √ √ textEmpty for custom styles Style name
CS_Style_Rotation √ √ √ real0-360360Rotation of text
CS_Style_Size √ √ √ real94128Font size
CS_Style_StrikeThrough √ √ boolno Font style - strike-through
Bit 3 of CS_Style_Full
CS_Style_TextColor √ √ √ color#FF000000 Font color
Black
CS_Style_Underline √ √ boolno Font style - underline
Bit 2 of CS_Style_Full
CS_Style_VertAlign √ √ √ int003Vertical 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