Table of Contents

Class FormControlClass

Namespace
RDCore.SDK.Workspace.Forms
Assembly
RDCore.SDK.Protocols.dll

The class of a form or of one of its controls: the library that defines it and the class's name in that library, or the class identifier of an ActiveX control the designer data names only by its CLSID.

public sealed record FormControlClass : IEquatable<FormControlClass>
Inheritance
FormControlClass
Implements
Inherited Members

Constructors

FormControlClass(string?, string?, Guid?)

The class of a form or of one of its controls: the library that defines it and the class's name in that library, or the class identifier of an ActiveX control the designer data names only by its CLSID.

public FormControlClass(string? Library, string? Name, Guid? ClassId = null)

Parameters

Library string

The name of the library that defines the class (MSForms, VB, MSComctlLib), or null when the designer data names the class by its CLSID only.

Name string

The name of the class in its library (TextBox), or null when the designer data names the class by its CLSID only.

ClassId Guid?

The class identifier, when the designer data gives one.

Fields

MSFormsDesignerClassId

The class identifier of the Microsoft Forms 2.0 designer, which names a VBA UserForm's designer block (Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} UserForm1).

public static readonly Guid MSFormsDesignerClassId

Field Value

Guid

MSFormsLibrary

The name of the Microsoft Forms type library, which qualifies the classes of a UserForm and of its controls (MSForms.TextBox).

public const string MSFormsLibrary = "MSForms"

Field Value

string

Properties

ClassId

The class identifier, when the designer data gives one.

public Guid? ClassId { get; init; }

Property Value

Guid?

Library

The name of the library that defines the class (MSForms, VB, MSComctlLib), or null when the designer data names the class by its CLSID only.

public string? Library { get; init; }

Property Value

string

Name

The name of the class in its library (TextBox), or null when the designer data names the class by its CLSID only.

public string? Name { get; init; }

Property Value

string

Methods

Parse(string)

The class a designer's Begin <class> <name> line names in its <class>.

public static FormControlClass Parse(string token)

Parameters

token string

The <class> of the Begin line, as it is written.

Returns

FormControlClass

The class, with its library and name, or with its class identifier only.

Remarks

VB.CommandButton and MSComctlLib.ListView name a library and a class; a bare name (Label) names a class of no library; a class identifier in braces ({8BD21D10-EC42-11CE-9E0D-00AA006002F3}) names an ActiveX class by its CLSID only.

Exceptions

ArgumentNullException

token is null.

ToString()

The library-qualified name of the class (MSForms.TextBox), or its class identifier in braces when the designer data names it by its CLSID only.

public override string ToString()

Returns

string