Class DesignerHeader
The designer a module's header names (DesignerOf(string?)): the Begin <class> <name> line that opens its
designer block, which says what the module's designer is (VB.Form, VB.UserControl, a VBA UserForm) and what it names the form.
public sealed record DesignerHeader : IEquatable<DesignerHeader>
- Inheritance
-
DesignerHeader
- Implements
- Inherited Members
Constructors
DesignerHeader(FormControlClass, string, int, int, int?)
The designer a module's header names (DesignerOf(string?)): the Begin <class> <name> line that opens its
designer block, which says what the module's designer is (VB.Form, VB.UserControl, a VBA UserForm) and what it names the form.
public DesignerHeader(FormControlClass Class, string Name, int Line, int NameColumn, int? EndLine)
Parameters
ClassFormControlClassThe designer's class:
VB.Form,VB.MDIForm,VB.UserControlorVB.PropertyPagefor a Visual Basic 6.0 designer;MSForms.UserForm, with MSFormsDesignerClassId, for a VBA UserForm; the class identifier alone for another ActiveX designer.NamestringThe name the line gives the form (
Form1).LineintThe zero-based line of the
Beginline in the module's text, its lines split at each line feed.NameColumnintThe zero-based column of Line where
Namestarts.EndLineint?The zero-based line of the
Endthat closes the designer block, or null when the text never closes it. Each control'sBeginline opens a block that its ownEndcloses. The lines of a property group (BeginPropertytoEndProperty) are the property's: aBeginor anEndamong them opens or closes no block. The platform reads no designer from a block that is never closed.
Properties
Class
The designer's class: VB.Form, VB.MDIForm, VB.UserControl or VB.PropertyPage for a Visual Basic 6.0 designer;
MSForms.UserForm, with MSFormsDesignerClassId, for a VBA UserForm; the class identifier alone for another ActiveX
designer.
public FormControlClass Class { get; init; }
Property Value
EndLine
The zero-based line of the End that closes the designer block, or null when the text never closes it. Each control's
Begin line opens a block that its own End closes. The lines of a property group (BeginProperty to EndProperty) are the
property's: a Begin or an End among them opens or closes no block. The platform reads no designer from a block that is never closed.
public int? EndLine { get; init; }
Property Value
- int?
Line
The zero-based line of the Begin line in the module's text, its lines split at each line feed.
public int Line { get; init; }
Property Value
Name
The name the line gives the form (Form1).
public string Name { get; init; }
Property Value
NameColumn
The zero-based column of Line where Name starts.
public int NameColumn { get; init; }