ROSTAM2
سه شنبه 18 مهر 1402, 09:16 صبح
در این ویدئوی آموزشی نحوه اضافه کردن آیتم به یک خصوصیت سفارشی با نوع محتوای ReadOnlyCollection توضیح داده شده...
https://aparat.com/v/jol1B
155004 (https://aparat.com/v/jol1B)
Private ItemsValue As New List(Of TextBox)
Public ReadOnly Property Items() As ReadOnlyCollection(Of TextBox)
Get
If Me.DesignMode = True Then
ItemsValue.Clear()
For Each Ctl As TextBox In LoadedComponents.Keys
ItemsValue.Add(Ctl)
Next
End If
Return ItemsValue.AsReadOnly
End Get
End Property
https://aparat.com/v/jol1B
155004 (https://aparat.com/v/jol1B)
Private ItemsValue As New List(Of TextBox)
Public ReadOnly Property Items() As ReadOnlyCollection(Of TextBox)
Get
If Me.DesignMode = True Then
ItemsValue.Clear()
For Each Ctl As TextBox In LoadedComponents.Keys
ItemsValue.Add(Ctl)
Next
End If
Return ItemsValue.AsReadOnly
End Get
End Property