Reference for .Net version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
SpaceVIL.Decorations.Style Class Reference

Style is a class that describes the appearance of an element. Can contains Styles for inner items. More...

Public Member Functions

 Style ()
 Constructs a default Style. More...
 
void SetStyle (params IBaseItem[] items)
 Setting this style for all items in sequence. More...
 
void SetSize (int width, int height)
 Setting size of an item's shape. More...
 
void SetMinSize (int width, int height)
 Setting minimum size of an item's shape (shape can not be smaller than specified width and height). More...
 
void SetMaxSize (int width, int height)
 Setting maximim size of an item's shape (shape can not be bigger than specified width and height). More...
 
void SetSizePolicy (SizePolicy widthPolicy, SizePolicy heightPolicy)
 Setting the size policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). More...
 
void SetBackground (int r, int g, int b)
 Setting background color of an item's shape in byte RGB format. More...
 
void SetBackground (int r, int g, int b, int a)
 Setting background color of an item's shape in byte RGBA format. More...
 
void SetBackground (float r, float g, float b)
 Setting background color of an item's shape in float RGB format. More...
 
void SetBackground (float r, float g, float b, float a)
 Setting background color of an item's shape in float RGBA format. More...
 
void SetForeground (int r, int g, int b)
 Setting text color of an item in byte RGB format. More...
 
void SetForeground (int r, int g, int b, int a)
 Setting text color of an item in byte RGBA format. More...
 
void SetForeground (float r, float g, float b)
 Setting text color of an item in float RGB format. More...
 
void SetForeground (float r, float g, float b, float a)
 Setting text color of an item in float RGBA format. More...
 
void SetPadding (Indents padding)
 Setting indents of an item to offset its children. More...
 
void SetPadding (int left=0, int top=0, int right=0, int bottom=0)
 Setting indents of an item to offset its children. More...
 
void SetMargin (Indents margin)
 Setting indents of an item to offset itself relative to its container. More...
 
void SetMargin (int left=0, int top=0, int right=0, int bottom=0)
 Setting indents of an item to offset itself relative to its container. More...
 
void SetSpacing (Spacing spacing)
 Setting indents between children of a container type item. More...
 
void SetSpacing (int horizontal=0, int vertical=0)
 Setting indents between children of a container type item. More...
 
void SetBorder (Border border)
 Setting border of an item's shape. Border consist of corner radiuses, thickness and color. More...
 
void SetBorder (Color fill, CornerRadius radius, int thickness)
 Setting border for an item's shape. Border consist of corner radiuses, thickness and color. More...
 
void SetShadow (Shadow shadow)
 Setting shadow for an item's shape. More...
 
void SetAlignment (ItemAlignment alignment)
 Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. More...
 
void SetAlignment (params ItemAlignment[] alignment)
 Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. More...
 
void SetTextAlignment (ItemAlignment alignment)
 Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. More...
 
void SetTextAlignment (params ItemAlignment[] alignment)
 Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. More...
 
void AddInnerShape (IBaseItem shape)
 Adding inner primitives to the item (as decorations only). Note: not supported in the current version! More...
 
void AddInnerStyle (String keyName, Style style)
 Assigning a style for an item's child by key name. More...
 
Style GetInnerStyle (String keyName)
 Getting a child’s style by key name. More...
 
void RemoveInnerStyle (String keyName)
 Removing a child's style by its key name. More...
 
void AddItemState (ItemStateType type, ItemState state)
 Adding visual state for an item. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled. More...
 
ItemState GetState (ItemStateType type)
 Getting visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled. More...
 
Dictionary< ItemStateType, ItemStateGetAllStates ()
 Getting all presented in the current style visual states of an item. More...
 
void RemoveItemState (ItemStateType type)
 Removing visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled. More...
 
Style Clone ()
 Cloning the current style and returning a new deep copy of Style. More...
 

Static Public Member Functions

static Style GetDefaultCommonStyle ()
 Getting a default common style. Properly filled in all the necessary properties. Use this method to create instance of Style class instead of using pure constructor (new Style()). More...
 
static Style GetButtonCoreStyle ()
 Getting default style for a ButtonCore item. Properly filled in all the necessary properties. More...
 
static Style GetButtonToggleStyle ()
 Getting default style for a ButtonToggle item. Properly filled in all the necessary properties. More...
 
static Style GetCheckBoxStyle ()
 Getting default style for a CheckBox item. Properly filled in all the necessary properties. Inner styles: "indicator", "text". More...
 
static Style GetIndicatorStyle ()
 Getting default style for a Indicator item. Properly filled in all the necessary properties. Inner styles: "marker". This is part of CheckBox item style. More...
 
static Style GetTextLineStyle ()
 Getting default style for a text type item. Attention: not all the necessary properties properly filled. More...
 
static Style GetComboBoxStyle ()
 Getting default style for a ComboBox item. Properly filled in all the necessary properties. Inner styles: "selection", "dropdownbutton", "dropdownarea", "arrow". More...
 
static Style GetComboBoxDropDownStyle ()
 Getting default style for a ComboBoxDropDown item. Properly filled in all the necessary properties. Inner styles: "itemlist". Inner styles for "itemlist": "vscrollbar", "hscrollbar", "menu". This is part of ComboBox item style. More...
 
static Style GetMenuItemStyle ()
 Getting default style for a MenuItem item. Properly filled in all the necessary properties. Inner styles: "text", "arrow". More...
 
static Style GetContextMenuStyle ()
 Getting default style for a ContextMenu item. Properly filled in all the necessary properties. Inner styles: "itemlist". More...
 
static Style GetFreeAreaStyle ()
 Getting default style for a FreeArea item. Properly filled in all the necessary properties. More...
 
static Style GetFrameStyle ()
 Getting default style for a Frame item. Properly filled in all the necessary properties. More...
 
static Style GetGridStyle ()
 Getting default style for a Grid item. Properly filled in all the necessary properties. More...
 
static Style GetHorizontalScrollBarStyle ()
 Getting default style for a HorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style. More...
 
static Style GetSimpleHorizontalScrollBarStyle ()
 Getting simplified style for a SimpleHorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". More...
 
static Style GetVerticalScrollBarStyle ()
 Getting default style for a VerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style. More...
 
static Style GetSimpleVerticalScrollBarStyle ()
 Getting simplified style for a SimpleVerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". More...
 
static Style GetHorizontalSliderStyle ()
 Getting default style for a HorizontalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler". More...
 
static Style GetVerticalSliderStyle ()
 Getting default style for a VerticalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler". More...
 
static Style GetHorizontalStackStyle ()
 Getting default style for a HorizontalStack item. Properly filled in all the necessary properties. More...
 
static Style GetVerticalStackStyle ()
 Getting default style for a VerticalStack item. Properly filled in all the necessary properties. More...
 
static Style GetHorizontalSplitAreaStyle ()
 Getting default style for a HorizontalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder". More...
 
static Style GetVerticalSplitAreaStyle ()
 Getting default style for a VerticalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder". More...
 
static Style GetLabelStyle ()
 Getting default style for a Label item. Properly filled in all the necessary properties. More...
 
static Style GetListAreaStyle ()
 Getting default style for a ListArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of many items style. More...
 
static Style GetListBoxStyle ()
 Getting default style for a ListBox item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu". More...
 
static Style GetWContainerStyle ()
 Note: not supported in current version. More...
 
static Style GetRadioButtonStyle ()
 Getting default style for a RadioButton item. Properly filled in all the necessary properties. Inner styles: "indicator", "text". Inner styles of "indicator": "marker". More...
 
static Style GetPasswordLineStyle ()
 Getting default style for a PasswordLine item. Properly filled in all the necessary properties. Inner styles: "showmarker", "textedit". More...
 
static Style GetTextEditStyle ()
 Getting default style for a TextEdit item. Properly filled in all the necessary properties. Inner styles: "text". Inner styles for "text": "cursor", "selection", "substrate". More...
 
static Style GetTextBlockStyle ()
 Getting default style for a sealed TextBlock item. Properly filled in all the necessary properties. Inner styles: "cursor", "selection". This is part of TextArea item style as "textedit". More...
 
static Style GetTextAreaStyle ()
 Getting default style for a TextArea item. Properly filled in all the necessary properties. Inner styles: "textedit", "vscrollbar", "hscrollbar", "menu". More...
 
static Style GetTextViewStyle ()
 Getting default style for a TextView item. Properly filled in all the necessary properties. Inner styles: "selection". More...
 
static Style GetPopUpMessageStyle ()
 Getting default style for a PopUpMessage item. Properly filled in all the necessary properties. Inner styles: "closebutton". More...
 
static Style GetProgressBarStyle ()
 Getting default style for a ProgressBar item. Properly filled in all the necessary properties. Inner styles: "progressbar". More...
 
static Style GetToolTipStyle ()
 Getting default style for a ToolTip item. Properly filled in all the necessary properties. Inner styles: "text". More...
 
static Style GetTitleBarStyle ()
 Getting default style for a TitleBar item. Properly filled in all the necessary properties. Inner styles: "closebutton", "minimizebutton", "maximizebutton", "title". More...
 
static Style GetTreeViewStyle ()
 Getting default style for a TreeView item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu". More...
 
static Style GetTreeItemStyle ()
 Getting default style for a TreeItem item. Properly filled in all the necessary properties. Inner styles: "indicator", "branchicon", "leaficon". More...
 
static Style GetSpinItemStyle ()
 Getting default style for a SpinItem item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "buttonsarea", "textedit". More...
 
static Style GetDialogItemStyle ()
 Getting default style for a DialogItem item. Properly filled in all the necessary properties. Inner styles: "window". This is part of OpenEntryDialog item style. More...
 
static Style GetMessageItemStyle ()
 Getting default style for a MessageItem item. Properly filled in all the necessary properties. Inner styles: "window", "button", "toolbar", "userbar", "message", "layout". More...
 
static Style GetWindowContainerStyle ()
 Getting default style for a window itself. Properly filled in all the necessary properties. More...
 
static Style GetFileSystemEntryStyle ()
 Getting default style for a FileSystemEntry item. Properly filled in all the necessary properties. Inner styles: "icon", "text". More...
 
static Style GetOpenEntryDialogStyle ()
 Getting default style for a OpenEntryDialog item. Properly filled in all the necessary properties. Inner styles: "window", "layout", "toolbar", "toolbarbutton", "addressline", "filenameline", "list", "controlpanel", "okbutton", "cancelbutton", "filter", "filtertext", "divider". More...
 
static Style GetInputDialogStyle ()
 Getting default style for a InputDialog item. Properly filled in all the necessary properties. Inner styles: "window", "button", "textedit", "layout", "toolbar". More...
 
static Style GetSelectionItemStyle ()
 Getting default style for a SelectionItem item. Properly filled in all the necessary properties. More...
 
static Style GetWrapAreaStyle ()
 Getting default style for a WrapArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of WrapGrid item style as "area". More...
 
static Style GetWrapGridStyle ()
 Getting default style for a WrapGrid item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar". Inner styles for "area": see Style.GetWrapAreaStyle(). More...
 
static Style GetSideAreaStyle ()
 Getting default style for a SideArea item. Properly filled in all the necessary properties. Inner styles: "window", "closebutton". More...
 
static Style GetImageItemStyle ()
 Getting default style for a ImageItem item. Properly filled in all the necessary properties. More...
 
static Style GetLoadingScreenStyle ()
 Getting default style for a LoadingScreen item. Properly filled in all the necessary properties. Inner styles: "text", "image". More...
 
static Style GetTabStyle ()
 Getting default style for a Tab item. Properly filled in all the necessary properties. Inner styles: "text", "closebutton", "view". This is part of TabView item style as "tab". More...
 
static Style GetTabBarStyle ()
 Getting default style for a TabBar item. Properly filled in all the necessary properties. This is part of TabView item style. More...
 
static Style GetTabViewStyle ()
 Getting default style for a *** item. Properly filled in all the necessary properties. Inner styles: "tabbar", "tab", "viewarea". Inner styles for "tab": see Style.GetTabStyle(). More...
 

Public Attributes

Color Background
 Background color of an item's shape. Attention: this property is required. This property is System.Drawing.Color. More...
 
Color Foreground
 Color of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Color. More...
 
Font Font = null
 Font of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Font. More...
 
SizePolicy WidthPolicy
 Width policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy. More...
 
SizePolicy HeightPolicy
 Height policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy. More...
 
int Width
 Width of an item's shape. More...
 
int MinWidth
 Minimum width of an item's shape (shape cannot be smaller this value). Default: 0. More...
 
int MaxWidth
 Maximum width of an item's shape (shape cannot be bigger this value). Default: 32767. More...
 
int Height
 Height of an item's shape. More...
 
int MinHeight
 Minimum height of an item's shape (shape cannot be smaller this value). Default: 0. More...
 
int MaxHeight
 Maximum height of an item's shape (shape cannot be bigget this value). Default: 32767. More...
 
ItemAlignment Alignment
 Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. This property is SpaceVIL.Core.ItemAlignment. More...
 
ItemAlignment TextAlignment
 Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. This property is SpaceVIL.Core.ItemAlignment. More...
 
int X
 X axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea. More...
 
int Y
 Y axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea. More...
 
Indents Padding
 Indents of an item to offset its children. Attention: this property is required. This property is SpaceVIL.Decorations.Indents. More...
 
Spacing Spacing
 Indents between children of a container type item. It is used mainly in containers. This property is SpaceVIL.Decorations.Spacing. More...
 
Indents Margin
 Indents of an item to offset itself relative to its container. Attention: this property is required. This property is SpaceVIL.Decorations.Indents. More...
 
CornerRadius BorderRadius = new CornerRadius()
 Radiuses to round the rectangular shape of the item. More...
 
int BorderThickness = 0
 Thickness of an item's border. Default: 0. More...
 
Color BorderFill
 Color of an item's border. This property is System.Drawing.Color. More...
 
List< float[]> Shape
 A form of an item's shape. If not assigned, the shape is rectangular. Format: System.Collections.Generic.List<System.Single[]>. More...
 
bool IsFixedShape = false
 A flag that determines if the shape of an item can be changed or not. True: if shape can not be resized. False: if shape can be resised. Default: False. More...
 
List< IBaseItemInnerShapes
 A storage of shapes for future use. Note: not supported in the current version! Format: System.Collections.Generic.List<SpaceVIL.Core.IBaseItem>. More...
 
int ShadowRadius
 Blur radius of a shadow. Min value: 0. Max value: 10. Default: 0. More...
 
int ShadowXOffset
 X shift of a shadow. More...
 
int ShadowYOffset
 Y shift of a shadow. More...
 
bool IsShadowDrop = false
 Drop shadow flag. True: allow shadow dropping. False: not allow shadow dropping. Default: False. More...
 
Color ShadowColor
 Color of a shadow. This property is System.Drawing.Color. More...
 
bool IsVisible
 A flag that determines if an item is visible or not. True: if visible. False: if not visible. Default: True. More...
 

Detailed Description

Style is a class that describes the appearance of an element. Can contains Styles for inner items.

Constructor & Destructor Documentation

◆ Style()

SpaceVIL.Decorations.Style.Style ( )

Constructs a default Style.

Member Function Documentation

◆ AddInnerShape()

void SpaceVIL.Decorations.Style.AddInnerShape ( IBaseItem  shape)

Adding inner primitives to the item (as decorations only). Note: not supported in the current version!

◆ AddInnerStyle()

void SpaceVIL.Decorations.Style.AddInnerStyle ( String  keyName,
Style  style 
)

Assigning a style for an item's child by key name.

Parameters
keyNameKey name of a child.
styleStyle as SpaceVIL.Decorations.Style.

◆ AddItemState()

void SpaceVIL.Decorations.Style.AddItemState ( ItemStateType  type,
ItemState  state 
)

Adding visual state for an item. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled.

Parameters
typeType as SpaceVIL.Core.ItemStateType.
stateVisual state as SpaceVIL.Decorations.ItemState.

◆ Clone()

Style SpaceVIL.Decorations.Style.Clone ( )

Cloning the current style and returning a new deep copy of Style.

Returns
Deep copy of current style as SpaceVIL.Decorations.Style.

◆ GetAllStates()

Dictionary<ItemStateType, ItemState> SpaceVIL.Decorations.Style.GetAllStates ( )

Getting all presented in the current style visual states of an item.

Returns
Dictionary of an ItemStateTypes and its ItemStates.

◆ GetButtonCoreStyle()

static Style SpaceVIL.Decorations.Style.GetButtonCoreStyle ( )
static

Getting default style for a ButtonCore item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetButtonToggleStyle()

static Style SpaceVIL.Decorations.Style.GetButtonToggleStyle ( )
static

Getting default style for a ButtonToggle item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetCheckBoxStyle()

static Style SpaceVIL.Decorations.Style.GetCheckBoxStyle ( )
static

Getting default style for a CheckBox item. Properly filled in all the necessary properties. Inner styles: "indicator", "text".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetComboBoxDropDownStyle()

static Style SpaceVIL.Decorations.Style.GetComboBoxDropDownStyle ( )
static

Getting default style for a ComboBoxDropDown item. Properly filled in all the necessary properties. Inner styles: "itemlist". Inner styles for "itemlist": "vscrollbar", "hscrollbar", "menu". This is part of ComboBox item style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetComboBoxStyle()

static Style SpaceVIL.Decorations.Style.GetComboBoxStyle ( )
static

Getting default style for a ComboBox item. Properly filled in all the necessary properties. Inner styles: "selection", "dropdownbutton", "dropdownarea", "arrow".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetContextMenuStyle()

static Style SpaceVIL.Decorations.Style.GetContextMenuStyle ( )
static

Getting default style for a ContextMenu item. Properly filled in all the necessary properties. Inner styles: "itemlist".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetDefaultCommonStyle()

static Style SpaceVIL.Decorations.Style.GetDefaultCommonStyle ( )
static

Getting a default common style. Properly filled in all the necessary properties. Use this method to create instance of Style class instead of using pure constructor (new Style()).

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetDialogItemStyle()

static Style SpaceVIL.Decorations.Style.GetDialogItemStyle ( )
static

Getting default style for a DialogItem item. Properly filled in all the necessary properties. Inner styles: "window". This is part of OpenEntryDialog item style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetFileSystemEntryStyle()

static Style SpaceVIL.Decorations.Style.GetFileSystemEntryStyle ( )
static

Getting default style for a FileSystemEntry item. Properly filled in all the necessary properties. Inner styles: "icon", "text".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetFrameStyle()

static Style SpaceVIL.Decorations.Style.GetFrameStyle ( )
static

Getting default style for a Frame item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetFreeAreaStyle()

static Style SpaceVIL.Decorations.Style.GetFreeAreaStyle ( )
static

Getting default style for a FreeArea item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetGridStyle()

static Style SpaceVIL.Decorations.Style.GetGridStyle ( )
static

Getting default style for a Grid item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetHorizontalScrollBarStyle()

static Style SpaceVIL.Decorations.Style.GetHorizontalScrollBarStyle ( )
static

Getting default style for a HorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetHorizontalSliderStyle()

static Style SpaceVIL.Decorations.Style.GetHorizontalSliderStyle ( )
static

Getting default style for a HorizontalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetHorizontalSplitAreaStyle()

static Style SpaceVIL.Decorations.Style.GetHorizontalSplitAreaStyle ( )
static

Getting default style for a HorizontalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetHorizontalStackStyle()

static Style SpaceVIL.Decorations.Style.GetHorizontalStackStyle ( )
static

Getting default style for a HorizontalStack item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetImageItemStyle()

static Style SpaceVIL.Decorations.Style.GetImageItemStyle ( )
static

Getting default style for a ImageItem item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetIndicatorStyle()

static Style SpaceVIL.Decorations.Style.GetIndicatorStyle ( )
static

Getting default style for a Indicator item. Properly filled in all the necessary properties. Inner styles: "marker". This is part of CheckBox item style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetInnerStyle()

Style SpaceVIL.Decorations.Style.GetInnerStyle ( String  keyName)

Getting a child’s style by key name.

Parameters
keyNameKey name of a child.
Returns
Style as SpaceVIL.Decorations.Style.

◆ GetInputDialogStyle()

static Style SpaceVIL.Decorations.Style.GetInputDialogStyle ( )
static

Getting default style for a InputDialog item. Properly filled in all the necessary properties. Inner styles: "window", "button", "textedit", "layout", "toolbar".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetLabelStyle()

static Style SpaceVIL.Decorations.Style.GetLabelStyle ( )
static

Getting default style for a Label item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetListAreaStyle()

static Style SpaceVIL.Decorations.Style.GetListAreaStyle ( )
static

Getting default style for a ListArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of many items style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetListBoxStyle()

static Style SpaceVIL.Decorations.Style.GetListBoxStyle ( )
static

Getting default style for a ListBox item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetLoadingScreenStyle()

static Style SpaceVIL.Decorations.Style.GetLoadingScreenStyle ( )
static

Getting default style for a LoadingScreen item. Properly filled in all the necessary properties. Inner styles: "text", "image".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetMenuItemStyle()

static Style SpaceVIL.Decorations.Style.GetMenuItemStyle ( )
static

Getting default style for a MenuItem item. Properly filled in all the necessary properties. Inner styles: "text", "arrow".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetMessageItemStyle()

static Style SpaceVIL.Decorations.Style.GetMessageItemStyle ( )
static

Getting default style for a MessageItem item. Properly filled in all the necessary properties. Inner styles: "window", "button", "toolbar", "userbar", "message", "layout".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetOpenEntryDialogStyle()

static Style SpaceVIL.Decorations.Style.GetOpenEntryDialogStyle ( )
static

Getting default style for a OpenEntryDialog item. Properly filled in all the necessary properties. Inner styles: "window", "layout", "toolbar", "toolbarbutton", "addressline", "filenameline", "list", "controlpanel", "okbutton", "cancelbutton", "filter", "filtertext", "divider".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetPasswordLineStyle()

static Style SpaceVIL.Decorations.Style.GetPasswordLineStyle ( )
static

Getting default style for a PasswordLine item. Properly filled in all the necessary properties. Inner styles: "showmarker", "textedit".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetPopUpMessageStyle()

static Style SpaceVIL.Decorations.Style.GetPopUpMessageStyle ( )
static

Getting default style for a PopUpMessage item. Properly filled in all the necessary properties. Inner styles: "closebutton".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetProgressBarStyle()

static Style SpaceVIL.Decorations.Style.GetProgressBarStyle ( )
static

Getting default style for a ProgressBar item. Properly filled in all the necessary properties. Inner styles: "progressbar".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetRadioButtonStyle()

static Style SpaceVIL.Decorations.Style.GetRadioButtonStyle ( )
static

Getting default style for a RadioButton item. Properly filled in all the necessary properties. Inner styles: "indicator", "text". Inner styles of "indicator": "marker".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetSelectionItemStyle()

static Style SpaceVIL.Decorations.Style.GetSelectionItemStyle ( )
static

Getting default style for a SelectionItem item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetSideAreaStyle()

static Style SpaceVIL.Decorations.Style.GetSideAreaStyle ( )
static

Getting default style for a SideArea item. Properly filled in all the necessary properties. Inner styles: "window", "closebutton".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetSimpleHorizontalScrollBarStyle()

static Style SpaceVIL.Decorations.Style.GetSimpleHorizontalScrollBarStyle ( )
static

Getting simplified style for a SimpleHorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetSimpleVerticalScrollBarStyle()

static Style SpaceVIL.Decorations.Style.GetSimpleVerticalScrollBarStyle ( )
static

Getting simplified style for a SimpleVerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetSpinItemStyle()

static Style SpaceVIL.Decorations.Style.GetSpinItemStyle ( )
static

Getting default style for a SpinItem item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "buttonsarea", "textedit".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetState()

ItemState SpaceVIL.Decorations.Style.GetState ( ItemStateType  type)

Getting visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled.

Parameters
typeType as SpaceVIL.Core.ItemStateType.
Returns
Visual state as SpaceVIL.Decorations.ItemState.

◆ GetTabBarStyle()

static Style SpaceVIL.Decorations.Style.GetTabBarStyle ( )
static

Getting default style for a TabBar item. Properly filled in all the necessary properties. This is part of TabView item style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTabStyle()

static Style SpaceVIL.Decorations.Style.GetTabStyle ( )
static

Getting default style for a Tab item. Properly filled in all the necessary properties. Inner styles: "text", "closebutton", "view". This is part of TabView item style as "tab".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTabViewStyle()

static Style SpaceVIL.Decorations.Style.GetTabViewStyle ( )
static

Getting default style for a *** item. Properly filled in all the necessary properties. Inner styles: "tabbar", "tab", "viewarea". Inner styles for "tab": see Style.GetTabStyle().

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTextAreaStyle()

static Style SpaceVIL.Decorations.Style.GetTextAreaStyle ( )
static

Getting default style for a TextArea item. Properly filled in all the necessary properties. Inner styles: "textedit", "vscrollbar", "hscrollbar", "menu".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTextBlockStyle()

static Style SpaceVIL.Decorations.Style.GetTextBlockStyle ( )
static

Getting default style for a sealed TextBlock item. Properly filled in all the necessary properties. Inner styles: "cursor", "selection". This is part of TextArea item style as "textedit".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTextEditStyle()

static Style SpaceVIL.Decorations.Style.GetTextEditStyle ( )
static

Getting default style for a TextEdit item. Properly filled in all the necessary properties. Inner styles: "text". Inner styles for "text": "cursor", "selection", "substrate".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTextLineStyle()

static Style SpaceVIL.Decorations.Style.GetTextLineStyle ( )
static

Getting default style for a text type item. Attention: not all the necessary properties properly filled.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTextViewStyle()

static Style SpaceVIL.Decorations.Style.GetTextViewStyle ( )
static

Getting default style for a TextView item. Properly filled in all the necessary properties. Inner styles: "selection".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTitleBarStyle()

static Style SpaceVIL.Decorations.Style.GetTitleBarStyle ( )
static

Getting default style for a TitleBar item. Properly filled in all the necessary properties. Inner styles: "closebutton", "minimizebutton", "maximizebutton", "title".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetToolTipStyle()

static Style SpaceVIL.Decorations.Style.GetToolTipStyle ( )
static

Getting default style for a ToolTip item. Properly filled in all the necessary properties. Inner styles: "text".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTreeItemStyle()

static Style SpaceVIL.Decorations.Style.GetTreeItemStyle ( )
static

Getting default style for a TreeItem item. Properly filled in all the necessary properties. Inner styles: "indicator", "branchicon", "leaficon".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetTreeViewStyle()

static Style SpaceVIL.Decorations.Style.GetTreeViewStyle ( )
static

Getting default style for a TreeView item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetVerticalScrollBarStyle()

static Style SpaceVIL.Decorations.Style.GetVerticalScrollBarStyle ( )
static

Getting default style for a VerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetVerticalSliderStyle()

static Style SpaceVIL.Decorations.Style.GetVerticalSliderStyle ( )
static

Getting default style for a VerticalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetVerticalSplitAreaStyle()

static Style SpaceVIL.Decorations.Style.GetVerticalSplitAreaStyle ( )
static

Getting default style for a VerticalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetVerticalStackStyle()

static Style SpaceVIL.Decorations.Style.GetVerticalStackStyle ( )
static

Getting default style for a VerticalStack item. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetWContainerStyle()

static Style SpaceVIL.Decorations.Style.GetWContainerStyle ( )
static

Note: not supported in current version.

Returns
default style for WContainer objects.

◆ GetWindowContainerStyle()

static Style SpaceVIL.Decorations.Style.GetWindowContainerStyle ( )
static

Getting default style for a window itself. Properly filled in all the necessary properties.

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetWrapAreaStyle()

static Style SpaceVIL.Decorations.Style.GetWrapAreaStyle ( )
static

Getting default style for a WrapArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of WrapGrid item style as "area".

Returns
Style as SpaceVIL.Decorations.Style.

◆ GetWrapGridStyle()

static Style SpaceVIL.Decorations.Style.GetWrapGridStyle ( )
static

Getting default style for a WrapGrid item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar". Inner styles for "area": see Style.GetWrapAreaStyle().

Returns
Style as SpaceVIL.Decorations.Style.

◆ RemoveInnerStyle()

void SpaceVIL.Decorations.Style.RemoveInnerStyle ( String  keyName)

Removing a child's style by its key name.

Parameters
keyNameKey name of a child.

◆ RemoveItemState()

void SpaceVIL.Decorations.Style.RemoveItemState ( ItemStateType  type)

Removing visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled.

Parameters
typeType as SpaceVIL.Core.ItemStateType.

◆ SetAlignment() [1/2]

void SpaceVIL.Decorations.Style.SetAlignment ( ItemAlignment  alignment)

Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required.

Parameters
alignmentAlignment as SpaceVIL.Core.ItemAlignment.

◆ SetAlignment() [2/2]

void SpaceVIL.Decorations.Style.SetAlignment ( params ItemAlignment[]  alignment)

Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required.

Parameters
alignmentAlignment as sequence of SpaceVIL.Core.ItemAlignment.

◆ SetBackground() [1/4]

void SpaceVIL.Decorations.Style.SetBackground ( float  r,
float  g,
float  b 
)

Setting background color of an item's shape in float RGB format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)

◆ SetBackground() [2/4]

void SpaceVIL.Decorations.Style.SetBackground ( float  r,
float  g,
float  b,
float  a 
)

Setting background color of an item's shape in float RGBA format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)
aAlpha color component. Range: (0.0f - 1.0f)

◆ SetBackground() [3/4]

void SpaceVIL.Decorations.Style.SetBackground ( int  r,
int  g,
int  b 
)

Setting background color of an item's shape in byte RGB format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)

◆ SetBackground() [4/4]

void SpaceVIL.Decorations.Style.SetBackground ( int  r,
int  g,
int  b,
int  a 
)

Setting background color of an item's shape in byte RGBA format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)
aAlpha color component. Range: (0 - 255)

◆ SetBorder() [1/2]

void SpaceVIL.Decorations.Style.SetBorder ( Border  border)

Setting border of an item's shape. Border consist of corner radiuses, thickness and color.

Parameters
borderBorder as SpaceVIL.Decorations.Border.

◆ SetBorder() [2/2]

void SpaceVIL.Decorations.Style.SetBorder ( Color  fill,
CornerRadius  radius,
int  thickness 
)

Setting border for an item's shape. Border consist of corner radiuses, thickness and color.

Parameters
fillBorder color as System.Drawing.Color.
radiusRadiuses of an border corners as SpaceVIL.Decorations.CornerRadius.
thicknessBorder thickness.

◆ SetForeground() [1/4]

void SpaceVIL.Decorations.Style.SetForeground ( float  r,
float  g,
float  b 
)

Setting text color of an item in float RGB format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)

◆ SetForeground() [2/4]

void SpaceVIL.Decorations.Style.SetForeground ( float  r,
float  g,
float  b,
float  a 
)

Setting text color of an item in float RGBA format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)
aAlpha color component. Range: (0.0f - 1.0f)

◆ SetForeground() [3/4]

void SpaceVIL.Decorations.Style.SetForeground ( int  r,
int  g,
int  b 
)

Setting text color of an item in byte RGB format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)

◆ SetForeground() [4/4]

void SpaceVIL.Decorations.Style.SetForeground ( int  r,
int  g,
int  b,
int  a 
)

Setting text color of an item in byte RGBA format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)
aAlpha color component. Range: (0 - 255)

◆ SetMargin() [1/2]

void SpaceVIL.Decorations.Style.SetMargin ( Indents  margin)

Setting indents of an item to offset itself relative to its container.

Parameters
marginIndents as SpaceVIL.Decorations.Indents.

◆ SetMargin() [2/2]

void SpaceVIL.Decorations.Style.SetMargin ( int  left = 0,
int  top = 0,
int  right = 0,
int  bottom = 0 
)

Setting indents of an item to offset itself relative to its container.

Parameters
leftIndent on the left.
topIndent on the top.
rightIndent on the right.
bottomIndent on the bottom.

◆ SetMaxSize()

void SpaceVIL.Decorations.Style.SetMaxSize ( int  width,
int  height 
)

Setting maximim size of an item's shape (shape can not be bigger than specified width and height).

Parameters
widthMaximim width of a shape.
heightMaximim height of a shape.

◆ SetMinSize()

void SpaceVIL.Decorations.Style.SetMinSize ( int  width,
int  height 
)

Setting minimum size of an item's shape (shape can not be smaller than specified width and height).

Parameters
widthMinimum width of a shape.
heightMinimum height of a shape.

◆ SetPadding() [1/2]

void SpaceVIL.Decorations.Style.SetPadding ( Indents  padding)

Setting indents of an item to offset its children.

Parameters
paddingPadding indents as SpaceVIL.Decorations.Indents.

◆ SetPadding() [2/2]

void SpaceVIL.Decorations.Style.SetPadding ( int  left = 0,
int  top = 0,
int  right = 0,
int  bottom = 0 
)

Setting indents of an item to offset its children.

Parameters
leftIndent on the left.
topIndent on the top.
rightIndent on the right.
bottomIndent on the bottom.

◆ SetShadow()

void SpaceVIL.Decorations.Style.SetShadow ( Shadow  shadow)

Setting shadow for an item's shape.

Parameters
shadowShadow as SpaceVIL.Decorations.Shadow.

◆ SetSize()

void SpaceVIL.Decorations.Style.SetSize ( int  width,
int  height 
)

Setting size of an item's shape.

Parameters
widthWidth of a shape.
heightHeight of a shape.

◆ SetSizePolicy()

void SpaceVIL.Decorations.Style.SetSizePolicy ( SizePolicy  widthPolicy,
SizePolicy  heightPolicy 
)

Setting the size policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space).

Parameters
widthPolicyWidth policy of an item's shape.
heightPolicyHeight policy of an item's shape.

◆ SetSpacing() [1/2]

void SpaceVIL.Decorations.Style.SetSpacing ( int  horizontal = 0,
int  vertical = 0 
)

Setting indents between children of a container type item.

Parameters
horizontalHorizontal indent.
verticalVertical indent.

◆ SetSpacing() [2/2]

void SpaceVIL.Decorations.Style.SetSpacing ( Spacing  spacing)

Setting indents between children of a container type item.

Parameters
spacingSpacing as SpaceVIL.Decorations.Spacing.

◆ SetStyle()

void SpaceVIL.Decorations.Style.SetStyle ( params IBaseItem[]  items)

Setting this style for all items in sequence.

Parameters
itemsA sequence of items that are SpaceVIL.Core.IBaseItem.

◆ SetTextAlignment() [1/2]

void SpaceVIL.Decorations.Style.SetTextAlignment ( ItemAlignment  alignment)

Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required.

Parameters
alignmentText alignment as SpaceVIL.Core.ItemAlignment.

◆ SetTextAlignment() [2/2]

void SpaceVIL.Decorations.Style.SetTextAlignment ( params ItemAlignment[]  alignment)

Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required.

Parameters
alignmentText alignment as sequence of SpaceVIL.Core.ItemAlignment.

Member Data Documentation

◆ Alignment

ItemAlignment SpaceVIL.Decorations.Style.Alignment

Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. This property is SpaceVIL.Core.ItemAlignment.

◆ Background

Color SpaceVIL.Decorations.Style.Background

Background color of an item's shape. Attention: this property is required. This property is System.Drawing.Color.

◆ BorderFill

Color SpaceVIL.Decorations.Style.BorderFill

Color of an item's border. This property is System.Drawing.Color.

◆ BorderRadius

CornerRadius SpaceVIL.Decorations.Style.BorderRadius = new CornerRadius()

Radiuses to round the rectangular shape of the item.

◆ BorderThickness

int SpaceVIL.Decorations.Style.BorderThickness = 0

Thickness of an item's border. Default: 0.

◆ Font

Font SpaceVIL.Decorations.Style.Font = null

Font of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Font.

◆ Foreground

Color SpaceVIL.Decorations.Style.Foreground

Color of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Color.

◆ Height

int SpaceVIL.Decorations.Style.Height

Height of an item's shape.

◆ HeightPolicy

SizePolicy SpaceVIL.Decorations.Style.HeightPolicy

Height policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy.

◆ InnerShapes

List<IBaseItem> SpaceVIL.Decorations.Style.InnerShapes

A storage of shapes for future use. Note: not supported in the current version! Format: System.Collections.Generic.List<SpaceVIL.Core.IBaseItem>.

◆ IsFixedShape

bool SpaceVIL.Decorations.Style.IsFixedShape = false

A flag that determines if the shape of an item can be changed or not. True: if shape can not be resized. False: if shape can be resised. Default: False.

◆ IsShadowDrop

bool SpaceVIL.Decorations.Style.IsShadowDrop = false

Drop shadow flag. True: allow shadow dropping. False: not allow shadow dropping. Default: False.

◆ IsVisible

bool SpaceVIL.Decorations.Style.IsVisible

A flag that determines if an item is visible or not. True: if visible. False: if not visible. Default: True.

◆ Margin

Indents SpaceVIL.Decorations.Style.Margin

Indents of an item to offset itself relative to its container. Attention: this property is required. This property is SpaceVIL.Decorations.Indents.

◆ MaxHeight

int SpaceVIL.Decorations.Style.MaxHeight

Maximum height of an item's shape (shape cannot be bigget this value). Default: 32767.

◆ MaxWidth

int SpaceVIL.Decorations.Style.MaxWidth

Maximum width of an item's shape (shape cannot be bigger this value). Default: 32767.

◆ MinHeight

int SpaceVIL.Decorations.Style.MinHeight

Minimum height of an item's shape (shape cannot be smaller this value). Default: 0.

◆ MinWidth

int SpaceVIL.Decorations.Style.MinWidth

Minimum width of an item's shape (shape cannot be smaller this value). Default: 0.

◆ Padding

Indents SpaceVIL.Decorations.Style.Padding

Indents of an item to offset its children. Attention: this property is required. This property is SpaceVIL.Decorations.Indents.

◆ ShadowColor

Color SpaceVIL.Decorations.Style.ShadowColor

Color of a shadow. This property is System.Drawing.Color.

◆ ShadowRadius

int SpaceVIL.Decorations.Style.ShadowRadius

Blur radius of a shadow. Min value: 0. Max value: 10. Default: 0.

◆ ShadowXOffset

int SpaceVIL.Decorations.Style.ShadowXOffset

X shift of a shadow.

◆ ShadowYOffset

int SpaceVIL.Decorations.Style.ShadowYOffset

Y shift of a shadow.

◆ Shape

List<float[]> SpaceVIL.Decorations.Style.Shape

A form of an item's shape. If not assigned, the shape is rectangular. Format: System.Collections.Generic.List<System.Single[]>.

◆ Spacing

Spacing SpaceVIL.Decorations.Style.Spacing

Indents between children of a container type item. It is used mainly in containers. This property is SpaceVIL.Decorations.Spacing.

◆ TextAlignment

ItemAlignment SpaceVIL.Decorations.Style.TextAlignment

Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. This property is SpaceVIL.Core.ItemAlignment.

◆ Width

int SpaceVIL.Decorations.Style.Width

Width of an item's shape.

◆ WidthPolicy

SizePolicy SpaceVIL.Decorations.Style.WidthPolicy

Width policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy.

◆ X

int SpaceVIL.Decorations.Style.X

X axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea.

◆ Y

int SpaceVIL.Decorations.Style.Y

Y axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea.


The documentation for this class was generated from the following file: