'宣言 Public Class UltraExplorerBarUIElement Inherits Infragistics.Win.ControlUIElementBase Implements Infragistics.Win.UIAutomation.IProvideUIAutomation
public class UltraExplorerBarUIElement : Infragistics.Win.ControlUIElementBase, Infragistics.Win.UIAutomation.IProvideUIAutomation
UltraExplorerBarUIElement はコントロールの領域全体を占めます。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button14.Click ' Display the size and number of elements in the control's main UIElement. Dim messageText As String = "The size of the control's main element is: {0}, and it contains {1} element(s)" Dim messageTextFormatted As String = String.Format(messageText, Me.ultraExplorerBar1.UIElement.Rect.Size.ToString(), _ Me.ultraExplorerBar1.UIElement.ChildElements.Count) Debug.WriteLine(messageTextFormatted) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button14_Click(object sender, System.EventArgs e) { // Display the size and number of elements in the control's main UIElement. string messageText = "The size of the control's main element is: {0}, and it contains {1} element(s)"; string messageTextFormatted = string.Format(messageText, this.ultraExplorerBar1.UIElement.Rect.Size.ToString(), this.ultraExplorerBar1.UIElement.ChildElements.Count); Debug.WriteLine(messageTextFormatted); }