Table of Contents

Class ComponentClasses

Namespace
RDCore.Forms.Model
Assembly
RDCore.Forms.dll

The component classes of the RDForms library that VB6's VB library and MSForms port to: the designer roots, the intrinsic controls and the menu. A VB6 designer file's VB.TextBox is an RDForms.TextBox, and an MSForms ToggleButton is an RDForms.ToggleButton.

public static class ComponentClasses
Inheritance
ComponentClasses
Inherited Members

Remarks

Each class lists the properties of it that the model holds, then the ones every class of its kind has: Left and Top for a component with a place, Width and Height for one with a size, Visible and RD-VBA's Opacity for a control a running program shows, and Tag. A property a designer file sets that a class does not list is kept as an UnmodelledProperty. Its methods are among Methods: a control's are Move, Refresh and ZOrder, and SetFocus where it can take the focus.

Fields

CheckBox

RDForms.CheckBox.

public static readonly ComponentClass CheckBox

Field Value

ComponentClass

ComboBox

RDForms.ComboBox. Its colors default to the window's. A program reaches its items through the list members of a ListBox (ListBox), except Selected and SelCount.

public static readonly ComponentClass ComboBox

Field Value

ComponentClass

CommandButton

RDForms.CommandButton. It has no ForeColor, as VB6's has none: its caption is drawn in the system's ButtonText colour.

public static readonly ComponentClass CommandButton

Field Value

ComponentClass

Data

RDForms.Data: the four buttons that move through a database's records, and its caption between them. Its caption's colours default to the window's. It takes no focus and has no TabIndex. Its UpdateRecord and UpdateControls act on its recordset.

public static readonly ComponentClass Data

Field Value

ComponentClass

DirListBox

RDForms.DirListBox: the directories of its Path, and the directories above it. It raises no DblClick. Its colours default to the window's.

public static readonly ComponentClass DirListBox

Field Value

ComponentClass

DriveListBox

RDForms.DriveListBox: the drives, one of which is its Drive. It raises no Click and no mouse events. Its colours default to the window's.

public static readonly ComponentClass DriveListBox

Field Value

ComponentClass

FileListBox

RDForms.FileListBox: the files of its Path that its Pattern and its attribute properties let through. Its colours default to the window's.

public static readonly ComponentClass FileListBox

Field Value

ComponentClass

Form

RDForms.Form: a form's designer root.

public static readonly ComponentClass Form

Field Value

ComponentClass

Frame

RDForms.Frame, a container.

public static readonly ComponentClass Frame

Field Value

ComponentClass

HScrollBar

RDForms.HScrollBar.

public static readonly ComponentClass HScrollBar

Field Value

ComponentClass

Image

RDForms.Image, windowless: it shows a picture, and holds no controls.

public static readonly ComponentClass Image

Field Value

ComponentClass

Label

RDForms.Label, windowless. Its background is opaque by default. Its Picture and PicturePosition are an RD-VBA addition, laid out as MSForms' Label lays them out.

public static readonly ComponentClass Label

Field Value

ComponentClass

Line

RDForms.Line, windowless. Its geometry is its two ends, in its container's scale: it has no Left, Top, Width or Height. It raises no events, and its colour defaults to the window's text colour.

public static readonly ComponentClass Line

Field Value

ComponentClass

ListBox

RDForms.ListBox. Its colors default to the window's. A program reaches its items through its list members, which its window answers: AddItem, RemoveItem, Clear, List, ItemData, ItemIcon, Selected, ListIndex, ListCount, NewIndex, SelCount and Text.

public static readonly ComponentClass ListBox

Field Value

ComponentClass

MDIForm

RDForms.MDIForm: an MDI form's designer root. Its background defaults to the application workspace's colour. It has no font, no scale of its own and, as VB6's has none, no Refresh.

public static readonly ComponentClass MDIForm

Field Value

ComponentClass

Menu

RDForms.Menu: a menu item. It has no place or size; its submenu's items are its contents. A form's menus, with VB's rules for them, are its FormMenu.

public static readonly ComponentClass Menu

Field Value

ComponentClass

MultiPage

RDForms.MultiPage: pages, one shown at a time, chosen by their tabs. It holds only Pages, and a page holds the controls shown while it is selected. Its Value is the selected page's index, and a program reaches its pages through Pages. Its events name the page they are about first.

public static readonly ComponentClass MultiPage

Field Value

ComponentClass

OptionButton

RDForms.OptionButton.

public static readonly ComponentClass OptionButton

Field Value

ComponentClass

Page

RDForms.Page: a page of a MultiPage, and nothing else holds one. It fills its MultiPage's client area, so it has no place or size of its own, and it holds the controls shown while it is selected. Its MultiPage raises the events about it.

public static readonly ComponentClass Page

Field Value

ComponentClass

PictureBox

RDForms.PictureBox, a container. It has a single-line border by default.

public static readonly ComponentClass PictureBox

Field Value

ComponentClass

PropertyPage

RDForms.PropertyPage: a PropertyPage's designer root.

public static readonly ComponentClass PropertyPage

Field Value

ComponentClass

Shape

RDForms.Shape, windowless. It raises no events.

public static readonly ComponentClass Shape

Field Value

ComponentClass

SpinButton

RDForms.SpinButton: two arrows that move a value up and down, one above the other or side by side by its Orientation.

public static readonly ComponentClass SpinButton

Field Value

ComponentClass

TabStrip

RDForms.TabStrip: a row of tabs, one selected, which holds no controls: a program shows what the selected tab stands for. Its tabs are its Tabs, which a program reaches through Tabs, and its Value is the selected tab's index. Its events name the tab they are about first.

public static readonly ComponentClass TabStrip

Field Value

ComponentClass

TextBox

RDForms.TextBox. Its colours default to the window's (Window, WindowText), where most controls default to the button's (ButtonFace, ButtonText), and it has a single-line border by default.

public static readonly ComponentClass TextBox

Field Value

ComponentClass

Timer

RDForms.Timer. It has a place in the designer and no size, and a running program does not show it and can neither read nor set its Left and Top. It has no Container.

public static readonly ComponentClass Timer

Field Value

ComponentClass

ToggleButton

RDForms.ToggleButton: a push button that stays down once clicked, and comes up at the next click. Its Value is True while it is down, False while it is up, and Null where it is neither. Its caption wraps by default.

public static readonly ComponentClass ToggleButton

Field Value

ComponentClass

UserControl

RDForms.UserControl: a UserControl's designer root, with the properties VB6's Properties window lists for it and their defaults. It is opaque, its MaskColor is the button face's colour, and its palette is its container's. A placed UserControl is an instance of the class Of(FormDefinition, string, IReadOnlyList<EventDefinition>?) makes from its designer file.

public static readonly ComponentClass UserControl

Field Value

ComponentClass

VScrollBar

RDForms.VScrollBar.

public static readonly ComponentClass VScrollBar

Field Value

ComponentClass

Properties

All

Every class of the catalog.

public static IReadOnlyList<ComponentClass> All { get; }

Property Value

IReadOnlyList<ComponentClass>

Methods

ByTypeName(string)

The catalog's class of a given type name, such as RDForms.TextBox, compared without regard to case.

public static ComponentClass? ByTypeName(string typeName)

Parameters

typeName string

The class's qualified type name.

Returns

ComponentClass

The class, or null when the catalog has none of that name.

CanHold(ComponentClass, ComponentClass)

Whether a container of class container holds a control of class control, as far as their classes go: a Page goes in a MultiPage only, and a MultiPage holds pages only. A class that holds no controls (IsContainer) holds none of any class.

public static bool CanHold(ComponentClass container, ComponentClass control)

Parameters

container ComponentClass

The container's class.

control ComponentClass

The control's class.

Returns

bool

true when the container's class holds the control's.