Source
01 Syntax
Microsoft.VisualBasic.ApplicationServices.Development.VisualStudio.VBProj.CodeDOM.Source
02 Properties
| Name | Overloads | Summary |
|---|---|---|
| LineRange | 1 | the 1-based physical line range of the whole code block, including any leading xml documentation comment (''') / attribute block (<...>) and ending at the matching End XXX statem… |
| DeclarationLine | 1 | the 1-based physical line where the declaration keyword (Class / Function / ...) actually starts. |
| CodeBlock | 1 | extract the raw VB.NET source text of this symbol from its file. |
| FilePath | 1 |
03 Members
LineRange
the 1-based physical line range of the whole code block, including any leading xml documentation comment (''') / attribute block (<...>) and ending at the matching End XXX statement.
DeclarationLine
the 1-based physical line where the declaration keyword (Class / Function / ...) actually starts. May differ from Source.LineRange.Min when a leading xml doc / attribute block is present.
CodeBlock
extract the raw VB.NET source text of this symbol from its file.
Remarks
This property reads the whole file on every access (lazy, on demand). Do not call it inside hot loops or ToString overrides.
FilePath