属性テーブル ウィンドウの位置とサイズを変更

 2016/9/1 (木)    

Public Sub MoveTableDockWindow()
  Dim pDockableWindowManager As IDockableWindowManager
  Set pDockableWindowManager = Application
   
  Dim pUID As IUID
  Set pUID = New UID
  pUID.Value = "{2B740D8F-442C-4975-BCE7-59D9949DAD9E}" 'TableDockWindow
   
  Dim pDockableWindow As IDockableWindow
  Set pDockableWindow = pDockableWindowManager.GetDockableWindow(pUID)  'ArcID.TableDockWindow
   
  Dim pWindowPosition As IWindowPosition
  Set pWindowPosition = pDockableWindow
 
  If pDockableWindow.IsVisible Then
    pDockableWindow.Dock esriDockFloat
    pWindowPosition.Move 100, 100, 300, 100
  End If
End Sub

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.