我正在尝试为IntelliSense创建XML注释,并使用以下操作:
'''<summary>Units
''' <para>MinOccurs: '0'</para>
''' </summary>
Public Property S_Units As String = Nothing
已折叠,如下所示:
'''<summary>BinLocation
Public Property B_BinLocation As String = Nothing
我想做的是添加一个XMLcomment,当它被折叠时,它会模拟在深入研究像Microsoft这样的系统属性时它的显示方式
String.Padright
属性(我知道这只是常规评论,但需要相同的效果)
'
' Summary:
' Returns a new string that left-aligns the characters in this string by padding
' them on the right with a specified Unicode character, for a specified total length.
'
' Parameters:
' totalWidth:
' The number of characters in the resulting string, equal to the number of original
' characters plus any additional padding characters.
'
' paddingChar:
' A Unicode padding character.
'
' Returns:
' A new string that is equivalent to this instance, but left-aligned and padded
' on the right with as many paddingChar characters as needed to create a length
' of totalWidth. However, if totalWidth is less than the length of this instance,
' the method returns a reference to the existing instance. If totalWidth is equal
' to the length of this instance, the method returns a new string that is identical
' to this instance.
'
' Exceptions:
' T:System.ArgumentOutOfRangeException:
' totalWidth is less than zero.
Public Function PadRight(totalWidth As Integer, paddingChar As Char) As [String]
已折叠,如下所示:
...Public Function PadRight(totalWidth As Integer) As [String]
注意椭圆与函数声明一致
如果我模拟这里使用的结构,我会得到以下结果:
'
' Summary:
' Summary Line
'
' Returns:
' Returns Line
Public Property S_Units As String = Nothing
导致坍塌:
' ...
Public Property S_Units As String = Nothing
请注意属性声明上方的椭圆。
值得注意的一点是,我从
System
名称空间和VS选项卡显示
String [from metadata]
这可能是它表现不同的原因吗?或者我在什么地方遗漏了一些导入或引用?
有什么我可以试试的吗?