diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/06 FormRegions.csproj b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/06 FormRegions.csproj deleted file mode 100644 index 3c168885aa..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/06 FormRegions.csproj +++ /dev/null @@ -1,100 +0,0 @@ - - - - - Debug - AnyCPU - {14E4E752-777A-4A98-900B-0FC88CE02CB7} - Library - Properties - Outlook06AddinCS4 - Outlook06AddinCS4 - v4.0 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - false - - - - - - - - ..\..\..\..\..\Assemblies\Any CPU\MSFormsApi.dll - False - - - ..\..\..\..\..\Assemblies\Any CPU\NetOffice.dll - False - - - ..\..\..\..\..\Assemblies\Any CPU\OfficeApi.dll - False - - - ..\..\..\..\..\Assemblies\Any CPU\OutlookApi.dll - False - - - - - - - - - - ..\..\..\..\..\Assemblies\Any CPU\VBIDEApi.dll - False - - - - - - - - True - True - Resources.resx - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - - - - - - - - - \ No newline at end of file diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Addin.cs b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Addin.cs deleted file mode 100644 index 9575fa08dd..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Addin.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using NetOffice; -using NetOffice.Tools; -using Office = NetOffice.OfficeApi; -using Outlook = NetOffice.OutlookApi; -using NetOffice.OutlookApi.Enums; -using NetOffice.OutlookApi.Tools; -/* - FormRegions Example -*/ -namespace Outlook06AddinCS4 -{ - [COMAddin("Outlook06 Sample Addin CS4", "FormRegions Example", LoadBehavior.LoadAtStartup)] - [FormRegion("CustomFormRegion_1_CS4", "IPM.Note", "CustomFormRegion1.xml", "CustomFormRegion1.ofs", "Icon1.ico")] - [ProgId("Outlook06AddinCS4.Connect"), Guid("ABDD3141-9E5C-4306-96B4-B705F94C1C55"), Codebase, Timestamp] - public class Addin : COMAddin - { - protected override OpenFormRegion OnCreateOpenFormRegion(Outlook.FormRegion form) - { - return new CustomFormRegion1(form); - } - } -} \ No newline at end of file diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.cs b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.cs deleted file mode 100644 index ce53645b04..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using NetOffice; -using Outlook = NetOffice.OutlookApi; -using NetOffice.OutlookApi.Tools; -using MSForms = NetOffice.MSFormsApi; -using NetOffice.OutlookApi.Tools.Contribution; -using NetOffice.Extensions.Conversion; - -namespace Outlook06AddinCS4 -{ - public class CustomFormRegion1 : OpenFormRegion - { - private Outlook.OlkTextBox _textBox1; - private Outlook.OlkCommandButton _commandButton1; - - public CustomFormRegion1(Outlook.FormRegion formRegion) : base(formRegion) - { - MSForms.UserForm form = formRegion.Form as MSForms.UserForm; - _textBox1 = form.Controls["TextBox1"].To(); - _commandButton1 = form.Controls["CommandButton1"].To(); - - if(null != _commandButton1) - _commandButton1.ClickEvent += CommandButton1_ClickEvent; - } - - private void CommandButton1_ClickEvent() - { - if(null != _textBox1) - OutlookDialogUtils.ShowMessageBox(_textBox1.Text, "Outlook06AddinCS4"); - } - } -} diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.ofs b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.ofs deleted file mode 100644 index ec64bcf5b7..0000000000 Binary files a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.ofs and /dev/null differ diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.xml b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.xml deleted file mode 100644 index de0340be1a..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - separate - CustomFormRegion1 - true - true - false - - addin - - \ No newline at end of file diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Icon1.ico b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Icon1.ico deleted file mode 100644 index 5d06b9f285..0000000000 Binary files a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Icon1.ico and /dev/null differ diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/AssemblyInfo.cs b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/AssemblyInfo.cs deleted file mode 100644 index 306d6750ab..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Outlook06AddinCS4")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("https://github.com/NetOfficeFw")] -[assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(true)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("14e4e752-777a-4a98-900b-0fc88ce02cb7")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/Resources.Designer.cs b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/Resources.Designer.cs deleted file mode 100644 index 5d0cbbc143..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/Resources.Designer.cs +++ /dev/null @@ -1,63 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Outlook06AddinCS4.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Outlook06AddinCS4.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } -} diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/Resources.resx b/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/Resources.resx deleted file mode 100644 index 4fdb1b6aff..0000000000 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/06 FormRegions/Properties/Resources.resx +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Examples/Outlook/C#/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln b/Examples/Outlook/C#/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln index 4e24997f79..b4c83ec4c5 100644 --- a/Examples/Outlook/C#/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln +++ b/Examples/Outlook/C#/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32804.467 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02 Ribbons and Panes", "02 Ribbons And Panes\02 Ribbons and Panes.csproj", "{372327EE-02AD-435D-AB29-5699137F41E6}" EndProject @@ -13,8 +13,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04 Register and Unregister" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05 Custom Property Page", "05 Custom Property Page\05 Custom Property Page.csproj", "{8EBE9076-3429-4A80-8B35-14B3CA5565DF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06 FormRegions", "06 FormRegions\06 FormRegions.csproj", "{14E4E752-777A-4A98-900B-0FC88CE02CB7}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -41,12 +39,11 @@ Global {8EBE9076-3429-4A80-8B35-14B3CA5565DF}.Debug|Any CPU.Build.0 = Debug|Any CPU {8EBE9076-3429-4A80-8B35-14B3CA5565DF}.Release|Any CPU.ActiveCfg = Release|Any CPU {8EBE9076-3429-4A80-8B35-14B3CA5565DF}.Release|Any CPU.Build.0 = Release|Any CPU - {14E4E752-777A-4A98-900B-0FC88CE02CB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {14E4E752-777A-4A98-900B-0FC88CE02CB7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {14E4E752-777A-4A98-900B-0FC88CE02CB7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {14E4E752-777A-4A98-900B-0FC88CE02CB7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2EC7A968-7DCC-4C56-A34D-7D9C3CA458E0} + EndGlobalSection EndGlobal diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/06 FormRegions.vbproj b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/06 FormRegions.vbproj deleted file mode 100644 index ba13afaeee..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/06 FormRegions.vbproj +++ /dev/null @@ -1,138 +0,0 @@ - - - - - Debug - AnyCPU - {990C94CC-AECC-4A99-852E-50A998B5677A} - Library - Outlook06AddinVB4 - Outlook06AddinVB4 - 512 - Windows - v4.0 - - - true - full - true - true - bin\Debug\ - - - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - true - - - pdbonly - false - true - true - bin\Release\ - - - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - true - - - On - - - Binary - - - Off - - - On - - - - ..\..\..\..\..\Assemblies\Any CPU\MSFormsApi.dll - False - - - ..\..\..\..\..\Assemblies\Any CPU\NetOffice.dll - False - - - ..\..\..\..\..\Assemblies\Any CPU\OfficeApi.dll - False - - - ..\..\..\..\..\Assemblies\Any CPU\OutlookApi.dll - False - - - - - - - - - ..\..\..\..\..\Assemblies\Any CPU\VBIDEApi.dll - False - - - - - - - - - - - - - - - - - - True - Application.myapp - - - True - True - Resources.resx - - - True - Settings.settings - True - - - - - VbMyResourcesResXFileCodeGenerator - Resources.Designer.vb - My.Resources - Designer - - - - - - MyApplicationCodeGenerator - Application.Designer.vb - - - SettingsSingleFileGenerator - My - Settings.Designer.vb - - - - - - - - - \ No newline at end of file diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/Addin.vb b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/Addin.vb deleted file mode 100644 index fbe4c1231c..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/Addin.vb +++ /dev/null @@ -1,18 +0,0 @@ -Imports System.Runtime.InteropServices -Imports NetOffice.Tools -Imports NetOffice.OutlookApi.Tools -Imports NetOffice.OutlookApi -' -'FormRegions Example -' - - - -Public Class Addin - Inherits COMAddin - - Protected Overrides Function OnCreateOpenFormRegion(form As FormRegion) As OpenFormRegion - Return New CustomFormRegion1(form) - End Function - -End Class \ No newline at end of file diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.ofs b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.ofs deleted file mode 100644 index ec64bcf5b7..0000000000 Binary files a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.ofs and /dev/null differ diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.vb b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.vb deleted file mode 100644 index 2de811578e..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.vb +++ /dev/null @@ -1,36 +0,0 @@ -Imports NetOffice -Imports Outlook = NetOffice.OutlookApi -Imports NetOffice.OutlookApi.Tools -Imports MSForms = NetOffice.MSFormsApi -Imports NetOffice.OutlookApi.Tools.Contribution - -Public Class CustomFormRegion1 - Inherits OpenFormRegion - - Private textBox1 As Outlook.OlkTextBox - Private commandButton1 As Outlook.OlkCommandButton - - Public Sub New(formRegion As Outlook.FormRegion) - - MyBase.New(formRegion) - - Dim form As MSForms.UserForm = formRegion.Form - textBox1 = form.Controls("TextBox1").To(Of Outlook.OlkTextBox)() - commandButton1 = form.Controls("CommandButton1").To(Of Outlook.OlkCommandButton)() - - If Not IsNothing(commandButton1) Then - Dim handler As Outlook.OlkCommandButton_ClickEventHandler = AddressOf Me.CommandButton1_ClickEvent - AddHandler commandButton1.ClickEvent, handler - End If - - End Sub - - Private Sub CommandButton1_ClickEvent() - - If Not IsNothing(textBox1) Then - OutlookDialogUtils.ShowMessageBox(textBox1.Text, "Outlook06AddinVB4") - End If - - End Sub - -End Class \ No newline at end of file diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.xml b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.xml deleted file mode 100644 index de0340be1a..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/CustomFormRegion1.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - separate - CustomFormRegion1 - true - true - false - - addin - - \ No newline at end of file diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/Icon1.ico b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/Icon1.ico deleted file mode 100644 index 5d06b9f285..0000000000 Binary files a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/Icon1.ico and /dev/null differ diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Application.Designer.vb b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Application.Designer.vb deleted file mode 100644 index 88dd01c78a..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Application.Designer.vb +++ /dev/null @@ -1,13 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:4.0.30319.42000 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Application.myapp b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Application.myapp deleted file mode 100644 index 758895def2..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Application.myapp +++ /dev/null @@ -1,10 +0,0 @@ - - - false - false - 0 - true - 0 - 1 - true - diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/AssemblyInfo.vb b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/AssemblyInfo.vb deleted file mode 100644 index 6efba682fb..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/AssemblyInfo.vb +++ /dev/null @@ -1,35 +0,0 @@ -Imports System -Imports System.Reflection -Imports System.Runtime.InteropServices - -' General Information about an assembly is controlled through the following -' set of attributes. Change these attribute values to modify the information -' associated with an assembly. - -' Review the values of the assembly attributes - - - - - - - - - - -'The following GUID is for the ID of the typelib if this project is exposed to COM - - -' Version information for an assembly consists of the following four values: -' -' Major Version -' Minor Version -' Build Number -' Revision -' -' You can specify all the values or you can default the Build and Revision Numbers -' by using the '*' as shown below: -' - - - diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Resources.Designer.vb b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Resources.Designer.vb deleted file mode 100644 index b9b457b389..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Resources.Designer.vb +++ /dev/null @@ -1,62 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:4.0.30319.42000 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - - -Namespace My.Resources - - 'This class was auto-generated by the StronglyTypedResourceBuilder - 'class via a tool like ResGen or Visual Studio. - 'To add or remove a member, edit your .ResX file then rerun ResGen - 'with the /str option, or rebuild your VS project. - ''' - ''' A strongly-typed resource class, for looking up localized strings, etc. - ''' - _ - Friend Module Resources - - Private resourceMan As Global.System.Resources.ResourceManager - - Private resourceCulture As Global.System.Globalization.CultureInfo - - ''' - ''' Returns the cached ResourceManager instance used by this class. - ''' - _ - Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager - Get - If Object.ReferenceEquals(resourceMan, Nothing) Then - Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Outlook06AddinVB4.Resources", GetType(Resources).Assembly) - resourceMan = temp - End If - Return resourceMan - End Get - End Property - - ''' - ''' Overrides the current thread's CurrentUICulture property for all - ''' resource lookups using this strongly typed resource class. - ''' - _ - Friend Property Culture() As Global.System.Globalization.CultureInfo - Get - Return resourceCulture - End Get - Set(ByVal value As Global.System.Globalization.CultureInfo) - resourceCulture = value - End Set - End Property - End Module -End Namespace diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Resources.resx b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Resources.resx deleted file mode 100644 index af7dbebbac..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Settings.Designer.vb b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Settings.Designer.vb deleted file mode 100644 index 7ba231054e..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Settings.Designer.vb +++ /dev/null @@ -1,73 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:4.0.30319.42000 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - - -Namespace My - - _ - Partial Friend NotInheritable Class MySettings - Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) - -#Region "My.Settings Auto-Save Functionality" -#If _MyType = "WindowsForms" Then - Private Shared addedHandler As Boolean - - Private Shared addedHandlerLockObject As New Object - - _ - Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) - If My.Application.SaveMySettingsOnExit Then - My.Settings.Save() - End If - End Sub -#End If -#End Region - - Public Shared ReadOnly Property [Default]() As MySettings - Get - -#If _MyType = "WindowsForms" Then - If Not addedHandler Then - SyncLock addedHandlerLockObject - If Not addedHandler Then - AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings - addedHandler = True - End If - End SyncLock - End If -#End If - Return defaultInstance - End Get - End Property - End Class -End Namespace - -Namespace My - - _ - Friend Module MySettingsProperty - - _ - Friend ReadOnly Property Settings() As Global.Outlook06AddinVB4.My.MySettings - Get - Return Global.Outlook06AddinVB4.My.MySettings.Default - End Get - End Property - End Module -End Namespace diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Settings.settings b/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Settings.settings deleted file mode 100644 index 85b890b3c6..0000000000 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/06 FormRegions/My Project/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/Examples/Outlook/VB/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln b/Examples/Outlook/VB/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln index 1aad2e248e..871004ad48 100644 --- a/Examples/Outlook/VB/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln +++ b/Examples/Outlook/VB/NetOffice COMAddin Examples/NetOffice Outlook Addin Examples.sln @@ -13,8 +13,6 @@ Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "04 Register and Unregister" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "05 Custom Property Page", "05 Custom Property Page\05 Custom Property Page.vbproj", "{39FE7D65-86CE-4482-932E-F228631994B2}" EndProject -Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "06 FormRegions", "06 FormRegions\06 FormRegions.vbproj", "{990C94CC-AECC-4A99-852E-50A998B5677A}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -41,10 +39,6 @@ Global {39FE7D65-86CE-4482-932E-F228631994B2}.Debug|Any CPU.Build.0 = Debug|Any CPU {39FE7D65-86CE-4482-932E-F228631994B2}.Release|Any CPU.ActiveCfg = Release|Any CPU {39FE7D65-86CE-4482-932E-F228631994B2}.Release|Any CPU.Build.0 = Release|Any CPU - {990C94CC-AECC-4A99-852E-50A998B5677A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {990C94CC-AECC-4A99-852E-50A998B5677A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {990C94CC-AECC-4A99-852E-50A998B5677A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {990C94CC-AECC-4A99-852E-50A998B5677A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Source/ClientApplication/ClientApplication.csproj b/Source/ClientApplication/ClientApplication.csproj index 1bcf61e290..1e96b4271a 100644 --- a/Source/ClientApplication/ClientApplication.csproj +++ b/Source/ClientApplication/ClientApplication.csproj @@ -23,7 +23,6 @@ - diff --git a/Source/MSForms/AssemblyInfo.cs b/Source/MSForms/AssemblyInfo.cs deleted file mode 100644 index b7dff348f4..0000000000 --- a/Source/MSForms/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using NetOffice; -using NetOffice.Attributes; - -/* - Contains the following Type Libraries: - Name - Description - SupportByVersion - MSForms - Microsoft Forms 2.0 Object Library - 2 - -*/ - -[assembly: PrimaryInteropAssembly(1, 0)] -[assembly: ImportedFromTypeLib("MSForms")] -[assembly: Guid("0D452EE1-E08F-101A-852E-02608C4D0BB4")] -[assembly: NetOfficeAssemblyAttribute("1.8.1.0")] -[assembly: Dependency("NetOffice.dll", LoadHint.Default)] - - -/* -Alias Table - -[SupportByVersion("MSForms", 2)] -OLE_COLOR as Int32 - -[SupportByVersion("MSForms", 2)] -OLE_HANDLE as Int32 - -[SupportByVersion("MSForms", 2)] -OLE_OPTEXCLUSIVE as bool - -[SupportByVersion("MSForms", 2)] -PIROWSET as object - -*/ \ No newline at end of file diff --git a/Source/MSForms/Classes/CheckBox.cs b/Source/MSForms/Classes/CheckBox.cs deleted file mode 100644 index 6959666375..0000000000 --- a/Source/MSForms/Classes/CheckBox.cs +++ /dev/null @@ -1,517 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void CheckBox_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void CheckBox_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void CheckBox_ChangeEventHandler(); - public delegate void CheckBox_ClickEventHandler(); - public delegate void CheckBox_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void CheckBox_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void CheckBox_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void CheckBox_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void CheckBox_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger kyCode, Int16 shift); - public delegate void CheckBox_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void CheckBox_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void CheckBox_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass CheckBox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MdcCheckBoxEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MdcCheckBoxEvents))] - public class CheckBox : IMdcCheckBox, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MdcCheckBoxEvents_SinkHelper _mdcCheckBoxEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(CheckBox); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public CheckBox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public CheckBox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public CheckBox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public CheckBox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public CheckBox(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of CheckBox - /// - public CheckBox():base("MSForms.CheckBox") - { - - } - - /// - /// Creates a new instance of CheckBox - /// - ///registered ProgID - public CheckBox(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CheckBox_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CheckBox_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MdcCheckBoxEvents_SinkHelper.Id); - - - if(Events.MdcCheckBoxEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _mdcCheckBoxEvents_SinkHelper = new Events.MdcCheckBoxEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _mdcCheckBoxEvents_SinkHelper) - { - _mdcCheckBoxEvents_SinkHelper.Dispose(); - _mdcCheckBoxEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ComboBox.cs b/Source/MSForms/Classes/ComboBox.cs deleted file mode 100644 index 7c3d44c59a..0000000000 --- a/Source/MSForms/Classes/ComboBox.cs +++ /dev/null @@ -1,540 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void ComboBox_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ComboBox_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ComboBox_ChangeEventHandler(); - public delegate void ComboBox_ClickEventHandler(); - public delegate void ComboBox_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void ComboBox_DropButtonClickEventHandler(); - public delegate void ComboBox_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void ComboBox_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ComboBox_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void ComboBox_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ComboBox_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void ComboBox_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void ComboBox_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass ComboBox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MdcComboEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MdcComboEvents))] - public class ComboBox : IMdcCombo, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MdcComboEvents_SinkHelper _mdcComboEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ComboBox); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ComboBox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ComboBox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ComboBox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ComboBox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ComboBox(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ComboBox - /// - public ComboBox():base("MSForms.ComboBox") - { - - } - - /// - /// Creates a new instance of ComboBox - /// - ///registered ProgID - public ComboBox(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_DropButtonClickEventHandler _DropButtonClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_DropButtonClickEventHandler DropButtonClickEvent - { - add - { - CreateEventBridge(); - _DropButtonClickEvent += value; - } - remove - { - _DropButtonClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ComboBox_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ComboBox_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MdcComboEvents_SinkHelper.Id); - - - if(Events.MdcComboEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _mdcComboEvents_SinkHelper = new Events.MdcComboEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _mdcComboEvents_SinkHelper) - { - _mdcComboEvents_SinkHelper.Dispose(); - _mdcComboEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/CommandButton.cs b/Source/MSForms/Classes/CommandButton.cs deleted file mode 100644 index 59b3a9d8c6..0000000000 --- a/Source/MSForms/Classes/CommandButton.cs +++ /dev/null @@ -1,494 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void CommandButton_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void CommandButton_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void CommandButton_ClickEventHandler(); - public delegate void CommandButton_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void CommandButton_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void CommandButton_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void CommandButton_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void CommandButton_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void CommandButton_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void CommandButton_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void CommandButton_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass CommandButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.CommandButtonEvents_SinkHelper))] - [ComEventInterface(typeof(Events.CommandButtonEvents))] - public class CommandButton : ICommandButton, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.CommandButtonEvents_SinkHelper _commandButtonEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(CommandButton); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public CommandButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public CommandButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public CommandButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public CommandButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public CommandButton(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of CommandButton - /// - public CommandButton():base("MSForms.CommandButton") - { - - } - - /// - /// Creates a new instance of CommandButton - /// - ///registered ProgID - public CommandButton(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event CommandButton_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event CommandButton_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.CommandButtonEvents_SinkHelper.Id); - - - if(Events.CommandButtonEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _commandButtonEvents_SinkHelper = new Events.CommandButtonEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _commandButtonEvents_SinkHelper) - { - _commandButtonEvents_SinkHelper.Dispose(); - _commandButtonEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/Control.cs b/Source/MSForms/Classes/Control.cs deleted file mode 100644 index 4b77acd091..0000000000 --- a/Source/MSForms/Classes/Control.cs +++ /dev/null @@ -1,333 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void Control_EnterEventHandler(); - public delegate void Control_ExitEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void Control_BeforeUpdateEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void Control_AfterUpdateEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass Control - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.ControlEvents_SinkHelper))] - [ComEventInterface(typeof(Events.ControlEvents))] - public class Control : IControl, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.ControlEvents_SinkHelper _controlEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Control); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Control(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public Control(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Control(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Control(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Control(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of Control - /// - public Control():base("MSForms.Control") - { - - } - - /// - /// Creates a new instance of Control - /// - ///registered ProgID - public Control(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event Control_EnterEventHandler _EnterEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Control_EnterEventHandler EnterEvent - { - add - { - CreateEventBridge(); - _EnterEvent += value; - } - remove - { - _EnterEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Control_ExitEventHandler _ExitEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Control_ExitEventHandler ExitEvent - { - add - { - CreateEventBridge(); - _ExitEvent += value; - } - remove - { - _ExitEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Control_BeforeUpdateEventHandler _BeforeUpdateEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Control_BeforeUpdateEventHandler BeforeUpdateEvent - { - add - { - CreateEventBridge(); - _BeforeUpdateEvent += value; - } - remove - { - _BeforeUpdateEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Control_AfterUpdateEventHandler _AfterUpdateEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Control_AfterUpdateEventHandler AfterUpdateEvent - { - add - { - CreateEventBridge(); - _AfterUpdateEvent += value; - } - remove - { - _AfterUpdateEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.ControlEvents_SinkHelper.Id); - - - if(Events.ControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _controlEvents_SinkHelper = new Events.ControlEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _controlEvents_SinkHelper) - { - _controlEvents_SinkHelper.Dispose(); - _controlEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/DataObject.cs b/Source/MSForms/Classes/DataObject.cs deleted file mode 100644 index 23ad7767c4..0000000000 --- a/Source/MSForms/Classes/DataObject.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass DataObject - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class DataObject : IDataAutoWrapper - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(DataObject); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public DataObject(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public DataObject(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public DataObject(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public DataObject(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public DataObject(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of DataObject - /// - public DataObject():base("MSForms.DataObject") - { - - } - - /// - /// Creates a new instance of DataObject - /// - ///registered ProgID - public DataObject(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/Frame.cs b/Source/MSForms/Classes/Frame.cs deleted file mode 100644 index 203d108e20..0000000000 --- a/Source/MSForms/Classes/Frame.cs +++ /dev/null @@ -1,609 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void Frame_AddControlEventHandler(NetOffice.MSFormsApi.Control control); - public delegate void Frame_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Control control, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState state, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void Frame_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Control control, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void Frame_ClickEventHandler(); - public delegate void Frame_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void Frame_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void Frame_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void Frame_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void Frame_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void Frame_LayoutEventHandler(); - public delegate void Frame_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Frame_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Frame_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Frame_RemoveControlEventHandler(NetOffice.MSFormsApi.Control control); - public delegate void Frame_ScrollEventHandler(NetOffice.MSFormsApi.Enums.fmScrollAction actionX, NetOffice.MSFormsApi.Enums.fmScrollAction actionY, Single requestDx, Single requestDy, NetOffice.MSFormsApi.ReturnSingle actualDx, NetOffice.MSFormsApi.ReturnSingle actualDy); - public delegate void Frame_ZoomEventHandler(ref Int16 percent); - #pragma warning restore - - #endregion - - /// - /// CoClass Frame - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.OptionFrameEvents_SinkHelper))] - [ComEventInterface(typeof(Events.OptionFrameEvents))] - public class Frame : IOptionFrame, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.OptionFrameEvents_SinkHelper _optionFrameEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Frame); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Frame(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public Frame(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Frame(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Frame(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Frame(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of Frame - /// - public Frame():base("MSForms.Frame") - { - - } - - /// - /// Creates a new instance of Frame - /// - ///registered ProgID - public Frame(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_AddControlEventHandler _AddControlEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_AddControlEventHandler AddControlEvent - { - add - { - CreateEventBridge(); - _AddControlEvent += value; - } - remove - { - _AddControlEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_LayoutEventHandler _LayoutEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_LayoutEventHandler LayoutEvent - { - add - { - CreateEventBridge(); - _LayoutEvent += value; - } - remove - { - _LayoutEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_RemoveControlEventHandler _RemoveControlEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_RemoveControlEventHandler RemoveControlEvent - { - add - { - CreateEventBridge(); - _RemoveControlEvent += value; - } - remove - { - _RemoveControlEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_ScrollEventHandler _ScrollEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_ScrollEventHandler ScrollEvent - { - add - { - CreateEventBridge(); - _ScrollEvent += value; - } - remove - { - _ScrollEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Frame_ZoomEventHandler _ZoomEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Frame_ZoomEventHandler ZoomEvent - { - add - { - CreateEventBridge(); - _ZoomEvent += value; - } - remove - { - _ZoomEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.OptionFrameEvents_SinkHelper.Id); - - - if(Events.OptionFrameEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _optionFrameEvents_SinkHelper = new Events.OptionFrameEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _optionFrameEvents_SinkHelper) - { - _optionFrameEvents_SinkHelper.Dispose(); - _optionFrameEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLCheckbox.cs b/Source/MSForms/Classes/HTMLCheckbox.cs deleted file mode 100644 index 55313201c8..0000000000 --- a/Source/MSForms/Classes/HTMLCheckbox.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLCheckbox_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLCheckbox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents3_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents3))] - public class HTMLCheckbox : IWHTMLCheckbox, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents3_SinkHelper _wHTMLControlEvents3_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLCheckbox); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLCheckbox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLCheckbox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLCheckbox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLCheckbox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLCheckbox(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLCheckbox - /// - public HTMLCheckbox():base("MSForms.HTMLCheckbox") - { - - } - - /// - /// Creates a new instance of HTMLCheckbox - /// - ///registered ProgID - public HTMLCheckbox(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLCheckbox_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLCheckbox_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents3_SinkHelper.Id); - - - if(Events.WHTMLControlEvents3_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents3_SinkHelper = new Events.WHTMLControlEvents3_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents3_SinkHelper) - { - _wHTMLControlEvents3_SinkHelper.Dispose(); - _wHTMLControlEvents3_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLHidden.cs b/Source/MSForms/Classes/HTMLHidden.cs deleted file mode 100644 index eafc45f565..0000000000 --- a/Source/MSForms/Classes/HTMLHidden.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLHidden_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLHidden - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents6_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents6))] - public class HTMLHidden : IWHTMLHidden, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents6_SinkHelper _wHTMLControlEvents6_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLHidden); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLHidden(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLHidden(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLHidden(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLHidden(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLHidden(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLHidden - /// - public HTMLHidden():base("MSForms.HTMLHidden") - { - - } - - /// - /// Creates a new instance of HTMLHidden - /// - ///registered ProgID - public HTMLHidden(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLHidden_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLHidden_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents6_SinkHelper.Id); - - - if(Events.WHTMLControlEvents6_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents6_SinkHelper = new Events.WHTMLControlEvents6_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents6_SinkHelper) - { - _wHTMLControlEvents6_SinkHelper.Dispose(); - _wHTMLControlEvents6_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLImage.cs b/Source/MSForms/Classes/HTMLImage.cs deleted file mode 100644 index 791489ce46..0000000000 --- a/Source/MSForms/Classes/HTMLImage.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLImage_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLImage - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents1_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents1))] - public class HTMLImage : IWHTMLImage, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents1_SinkHelper _wHTMLControlEvents1_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLImage); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLImage(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLImage(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLImage(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLImage(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLImage(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLImage - /// - public HTMLImage():base("MSForms.HTMLImage") - { - - } - - /// - /// Creates a new instance of HTMLImage - /// - ///registered ProgID - public HTMLImage(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLImage_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLImage_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents1_SinkHelper.Id); - - - if(Events.WHTMLControlEvents1_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents1_SinkHelper = new Events.WHTMLControlEvents1_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents1_SinkHelper) - { - _wHTMLControlEvents1_SinkHelper.Dispose(); - _wHTMLControlEvents1_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLOption.cs b/Source/MSForms/Classes/HTMLOption.cs deleted file mode 100644 index 2b9da49b2e..0000000000 --- a/Source/MSForms/Classes/HTMLOption.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLOption_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLOption - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents4_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents4))] - public class HTMLOption : IWHTMLOption, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents4_SinkHelper _wHTMLControlEvents4_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLOption); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLOption(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLOption(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLOption(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLOption(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLOption(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLOption - /// - public HTMLOption():base("MSForms.HTMLOption") - { - - } - - /// - /// Creates a new instance of HTMLOption - /// - ///registered ProgID - public HTMLOption(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLOption_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLOption_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents4_SinkHelper.Id); - - - if(Events.WHTMLControlEvents4_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents4_SinkHelper = new Events.WHTMLControlEvents4_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents4_SinkHelper) - { - _wHTMLControlEvents4_SinkHelper.Dispose(); - _wHTMLControlEvents4_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLPassword.cs b/Source/MSForms/Classes/HTMLPassword.cs deleted file mode 100644 index 3ce52e83e4..0000000000 --- a/Source/MSForms/Classes/HTMLPassword.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLPassword_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLPassword - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents7_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents7))] - public class HTMLPassword : IWHTMLPassword, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents7_SinkHelper _wHTMLControlEvents7_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLPassword); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLPassword(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLPassword(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLPassword(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLPassword(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLPassword(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLPassword - /// - public HTMLPassword():base("MSForms.HTMLPassword") - { - - } - - /// - /// Creates a new instance of HTMLPassword - /// - ///registered ProgID - public HTMLPassword(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLPassword_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLPassword_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents7_SinkHelper.Id); - - - if(Events.WHTMLControlEvents7_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents7_SinkHelper = new Events.WHTMLControlEvents7_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents7_SinkHelper) - { - _wHTMLControlEvents7_SinkHelper.Dispose(); - _wHTMLControlEvents7_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLReset.cs b/Source/MSForms/Classes/HTMLReset.cs deleted file mode 100644 index c85032175c..0000000000 --- a/Source/MSForms/Classes/HTMLReset.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLReset_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLReset - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents2_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents2))] - public class HTMLReset : IWHTMLReset, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents2_SinkHelper _wHTMLControlEvents2_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLReset); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLReset(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLReset(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLReset(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLReset(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLReset(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLReset - /// - public HTMLReset():base("MSForms.HTMLReset") - { - - } - - /// - /// Creates a new instance of HTMLReset - /// - ///registered ProgID - public HTMLReset(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLReset_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLReset_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents2_SinkHelper.Id); - - - if(Events.WHTMLControlEvents2_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents2_SinkHelper = new Events.WHTMLControlEvents2_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents2_SinkHelper) - { - _wHTMLControlEvents2_SinkHelper.Dispose(); - _wHTMLControlEvents2_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLSelect.cs b/Source/MSForms/Classes/HTMLSelect.cs deleted file mode 100644 index 80489fde7a..0000000000 --- a/Source/MSForms/Classes/HTMLSelect.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLSelect_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLSelect - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents9_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents9))] - public class HTMLSelect : IWHTMLSelect, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents9_SinkHelper _wHTMLControlEvents9_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLSelect); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLSelect(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLSelect(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLSelect(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLSelect(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLSelect(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLSelect - /// - public HTMLSelect():base("MSForms.HTMLSelect") - { - - } - - /// - /// Creates a new instance of HTMLSelect - /// - ///registered ProgID - public HTMLSelect(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLSelect_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLSelect_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents9_SinkHelper.Id); - - - if(Events.WHTMLControlEvents9_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents9_SinkHelper = new Events.WHTMLControlEvents9_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents9_SinkHelper) - { - _wHTMLControlEvents9_SinkHelper.Dispose(); - _wHTMLControlEvents9_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLSubmit.cs b/Source/MSForms/Classes/HTMLSubmit.cs deleted file mode 100644 index 3c6ecaeb62..0000000000 --- a/Source/MSForms/Classes/HTMLSubmit.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLSubmit_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLSubmit - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents))] - public class HTMLSubmit : IWHTMLSubmitButton, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents_SinkHelper _wHTMLControlEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLSubmit); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLSubmit(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLSubmit(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLSubmit(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLSubmit(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLSubmit(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLSubmit - /// - public HTMLSubmit():base("MSForms.HTMLSubmit") - { - - } - - /// - /// Creates a new instance of HTMLSubmit - /// - ///registered ProgID - public HTMLSubmit(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLSubmit_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLSubmit_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents_SinkHelper.Id); - - - if(Events.WHTMLControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents_SinkHelper = new Events.WHTMLControlEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents_SinkHelper) - { - _wHTMLControlEvents_SinkHelper.Dispose(); - _wHTMLControlEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLText.cs b/Source/MSForms/Classes/HTMLText.cs deleted file mode 100644 index bc9920c37e..0000000000 --- a/Source/MSForms/Classes/HTMLText.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLText_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLText - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents5_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents5))] - public class HTMLText : IWHTMLText, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents5_SinkHelper _wHTMLControlEvents5_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLText); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLText(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLText(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLText(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLText(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLText(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLText - /// - public HTMLText():base("MSForms.HTMLText") - { - - } - - /// - /// Creates a new instance of HTMLText - /// - ///registered ProgID - public HTMLText(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLText_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLText_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents5_SinkHelper.Id); - - - if(Events.WHTMLControlEvents5_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents5_SinkHelper = new Events.WHTMLControlEvents5_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents5_SinkHelper) - { - _wHTMLControlEvents5_SinkHelper.Dispose(); - _wHTMLControlEvents5_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/HTMLTextArea.cs b/Source/MSForms/Classes/HTMLTextArea.cs deleted file mode 100644 index ed0086695d..0000000000 --- a/Source/MSForms/Classes/HTMLTextArea.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void HTMLTextArea_ClickEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass HTMLTextArea - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.WHTMLControlEvents10_SinkHelper))] - [ComEventInterface(typeof(Events.WHTMLControlEvents10))] - public class HTMLTextArea : IWHTMLTextArea, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.WHTMLControlEvents10_SinkHelper _wHTMLControlEvents10_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(HTMLTextArea); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLTextArea(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public HTMLTextArea(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLTextArea(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLTextArea(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public HTMLTextArea(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of HTMLTextArea - /// - public HTMLTextArea():base("MSForms.HTMLTextArea") - { - - } - - /// - /// Creates a new instance of HTMLTextArea - /// - ///registered ProgID - public HTMLTextArea(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event HTMLTextArea_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event HTMLTextArea_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.WHTMLControlEvents10_SinkHelper.Id); - - - if(Events.WHTMLControlEvents10_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _wHTMLControlEvents10_SinkHelper = new Events.WHTMLControlEvents10_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _wHTMLControlEvents10_SinkHelper) - { - _wHTMLControlEvents10_SinkHelper.Dispose(); - _wHTMLControlEvents10_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/Image.cs b/Source/MSForms/Classes/Image.cs deleted file mode 100644 index 6ac467c164..0000000000 --- a/Source/MSForms/Classes/Image.cs +++ /dev/null @@ -1,425 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void Image_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void Image_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void Image_ClickEventHandler(); - public delegate void Image_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void Image_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void Image_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Image_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Image_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass Image - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.ImageEvents_SinkHelper))] - [ComEventInterface(typeof(Events.ImageEvents))] - public class Image : IImage, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.ImageEvents_SinkHelper _imageEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Image); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Image(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public Image(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Image(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Image(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Image(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of Image - /// - public Image():base("MSForms.Image") - { - - } - - /// - /// Creates a new instance of Image - /// - ///registered ProgID - public Image(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Image_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Image_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.ImageEvents_SinkHelper.Id); - - - if(Events.ImageEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _imageEvents_SinkHelper = new Events.ImageEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _imageEvents_SinkHelper) - { - _imageEvents_SinkHelper.Dispose(); - _imageEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/Label.cs b/Source/MSForms/Classes/Label.cs deleted file mode 100644 index 1409f778b8..0000000000 --- a/Source/MSForms/Classes/Label.cs +++ /dev/null @@ -1,425 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void Label_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void Label_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void Label_ClickEventHandler(); - public delegate void Label_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void Label_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void Label_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Label_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void Label_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass Label - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.LabelControlEvents_SinkHelper))] - [ComEventInterface(typeof(Events.LabelControlEvents))] - public class Label : ILabelControl, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.LabelControlEvents_SinkHelper _labelControlEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Label); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Label(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public Label(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Label(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Label(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Label(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of Label - /// - public Label():base("MSForms.Label") - { - - } - - /// - /// Creates a new instance of Label - /// - ///registered ProgID - public Label(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event Label_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event Label_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding Member - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.LabelControlEvents_SinkHelper.Id); - - - if(Events.LabelControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _labelControlEvents_SinkHelper = new Events.LabelControlEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _labelControlEvents_SinkHelper) - { - _labelControlEvents_SinkHelper.Dispose(); - _labelControlEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ListBox.cs b/Source/MSForms/Classes/ListBox.cs deleted file mode 100644 index 03fe0749d2..0000000000 --- a/Source/MSForms/Classes/ListBox.cs +++ /dev/null @@ -1,517 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void ListBox_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ListBox_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ListBox_ChangeEventHandler(); - public delegate void ListBox_ClickEventHandler(); - public delegate void ListBox_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void ListBox_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void ListBox_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ListBox_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void ListBox_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ListBox_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void ListBox_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void ListBox_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass ListBox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MdcListEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MdcListEvents))] - public class ListBox : IMdcList, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MdcListEvents_SinkHelper _mdcListEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ListBox); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ListBox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ListBox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ListBox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ListBox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ListBox(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ListBox - /// - public ListBox():base("MSForms.ListBox") - { - - } - - /// - /// Creates a new instance of ListBox - /// - ///registered ProgID - public ListBox(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ListBox_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ListBox_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MdcListEvents_SinkHelper.Id); - - - if(Events.MdcListEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _mdcListEvents_SinkHelper = new Events.MdcListEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _mdcListEvents_SinkHelper) - { - _mdcListEvents_SinkHelper.Dispose(); - _mdcListEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/MultiPage.cs b/Source/MSForms/Classes/MultiPage.cs deleted file mode 100644 index a2ebf49ca1..0000000000 --- a/Source/MSForms/Classes/MultiPage.cs +++ /dev/null @@ -1,632 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void MultiPage_AddControlEventHandler(Int32 index, NetOffice.MSFormsApi.Control control); - public delegate void MultiPage_BeforeDragOverEventHandler(Int32 index, NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Control control, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState state, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void MultiPage_BeforeDropOrPasteEventHandler(Int32 index, NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Control control, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void MultiPage_ChangeEventHandler(); - public delegate void MultiPage_ClickEventHandler(Int32 index); - public delegate void MultiPage_DblClickEventHandler(Int32 index, NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void MultiPage_ErrorEventHandler(Int32 index, Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void MultiPage_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void MultiPage_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void MultiPage_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void MultiPage_LayoutEventHandler(Int32 index); - public delegate void MultiPage_MouseDownEventHandler(Int32 index, Int16 button, Int16 shift, Single x, Single y); - public delegate void MultiPage_MouseMoveEventHandler(Int32 Index, Int16 button, Int16 shift, Single x, Single y); - public delegate void MultiPage_MouseUpEventHandler(Int32 index, Int16 button, Int16 shift, Single x, Single y); - public delegate void MultiPage_RemoveControlEventHandler(Int32 index, NetOffice.MSFormsApi.Control control); - public delegate void MultiPage_ScrollEventHandler(Int32 index, NetOffice.MSFormsApi.Enums.fmScrollAction actionX, NetOffice.MSFormsApi.Enums.fmScrollAction actionY, Single requestDx, Single requestDy, NetOffice.MSFormsApi.ReturnSingle actualDx, NetOffice.MSFormsApi.ReturnSingle actualDy); - public delegate void MultiPage_ZoomEventHandler(Int32 index, ref Int16 percent); - #pragma warning restore - - #endregion - - /// - /// CoClass MultiPage - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MultiPageEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MultiPageEvents))] - public class MultiPage : IMultiPage, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MultiPageEvents_SinkHelper _multiPageEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(MultiPage); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public MultiPage(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public MultiPage(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public MultiPage(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public MultiPage(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public MultiPage(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of MultiPage - /// - public MultiPage():base("MSForms.MultiPage") - { - - } - - /// - /// Creates a new instance of MultiPage - /// - ///registered ProgID - public MultiPage(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_AddControlEventHandler _AddControlEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_AddControlEventHandler AddControlEvent - { - add - { - CreateEventBridge(); - _AddControlEvent += value; - } - remove - { - _AddControlEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_LayoutEventHandler _LayoutEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_LayoutEventHandler LayoutEvent - { - add - { - CreateEventBridge(); - _LayoutEvent += value; - } - remove - { - _LayoutEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_RemoveControlEventHandler _RemoveControlEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_RemoveControlEventHandler RemoveControlEvent - { - add - { - CreateEventBridge(); - _RemoveControlEvent += value; - } - remove - { - _RemoveControlEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_ScrollEventHandler _ScrollEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_ScrollEventHandler ScrollEvent - { - add - { - CreateEventBridge(); - _ScrollEvent += value; - } - remove - { - _ScrollEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event MultiPage_ZoomEventHandler _ZoomEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event MultiPage_ZoomEventHandler ZoomEvent - { - add - { - CreateEventBridge(); - _ZoomEvent += value; - } - remove - { - _ZoomEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MultiPageEvents_SinkHelper.Id); - - - if(Events.MultiPageEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _multiPageEvents_SinkHelper = new Events.MultiPageEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _multiPageEvents_SinkHelper) - { - _multiPageEvents_SinkHelper.Dispose(); - _multiPageEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/NewFont.cs b/Source/MSForms/Classes/NewFont.cs deleted file mode 100644 index ef44c81090..0000000000 --- a/Source/MSForms/Classes/NewFont.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass NewFont - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class NewFont : Font - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(NewFont); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public NewFont(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public NewFont(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NewFont(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NewFont(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NewFont(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of NewFont - /// - public NewFont():base("MSForms.NewFont") - { - - } - - /// - /// Creates a new instance of NewFont - /// - ///registered ProgID - public NewFont(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/OptionButton.cs b/Source/MSForms/Classes/OptionButton.cs deleted file mode 100644 index d7b719e874..0000000000 --- a/Source/MSForms/Classes/OptionButton.cs +++ /dev/null @@ -1,517 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void OptionButton_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void OptionButton_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void OptionButton_ChangeEventHandler(); - public delegate void OptionButton_ClickEventHandler(); - public delegate void OptionButton_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void OptionButton_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void OptionButton_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void OptionButton_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode); - public delegate void OptionButton_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void OptionButton_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void OptionButton_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void OptionButton_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass OptionButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MdcOptionButtonEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MdcOptionButtonEvents))] - public class OptionButton : IMdcOptionButton, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MdcOptionButtonEvents_SinkHelper _mdcOptionButtonEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(OptionButton); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public OptionButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public OptionButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public OptionButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public OptionButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public OptionButton(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of OptionButton - /// - public OptionButton():base("MSForms.OptionButton") - { - - } - - /// - /// Creates a new instance of OptionButton - /// - ///registered ProgID - public OptionButton(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event OptionButton_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event OptionButton_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MdcOptionButtonEvents_SinkHelper.Id); - - - if(Events.MdcOptionButtonEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _mdcOptionButtonEvents_SinkHelper = new Events.MdcOptionButtonEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _mdcOptionButtonEvents_SinkHelper) - { - _mdcOptionButtonEvents_SinkHelper.Dispose(); - _mdcOptionButtonEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/Page.cs b/Source/MSForms/Classes/Page.cs deleted file mode 100644 index 8e1f852109..0000000000 --- a/Source/MSForms/Classes/Page.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass Page - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class Page : IPage - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Page); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Page(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public Page(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Page(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Page(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Page(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of Page - /// - public Page():base("MSForms.Page") - { - - } - - /// - /// Creates a new instance of Page - /// - ///registered ProgID - public Page(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ReturnBoolean.cs b/Source/MSForms/Classes/ReturnBoolean.cs deleted file mode 100644 index 667aedfa98..0000000000 --- a/Source/MSForms/Classes/ReturnBoolean.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass ReturnBoolean - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class ReturnBoolean : IReturnBoolean - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ReturnBoolean); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnBoolean(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnBoolean(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnBoolean(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnBoolean(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnBoolean(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ReturnBoolean - /// - public ReturnBoolean():base("MSForms.ReturnBoolean") - { - - } - - /// - /// Creates a new instance of ReturnBoolean - /// - ///registered ProgID - public ReturnBoolean(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ReturnEffect.cs b/Source/MSForms/Classes/ReturnEffect.cs deleted file mode 100644 index 75e0392ec7..0000000000 --- a/Source/MSForms/Classes/ReturnEffect.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass ReturnEffect - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class ReturnEffect : IReturnEffect - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ReturnEffect); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnEffect(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnEffect(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnEffect(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnEffect(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnEffect(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ReturnEffect - /// - public ReturnEffect():base("MSForms.ReturnEffect") - { - - } - - /// - /// Creates a new instance of ReturnEffect - /// - ///registered ProgID - public ReturnEffect(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ReturnInteger.cs b/Source/MSForms/Classes/ReturnInteger.cs deleted file mode 100644 index 004ef228e3..0000000000 --- a/Source/MSForms/Classes/ReturnInteger.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass ReturnInteger - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class ReturnInteger : IReturnInteger - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ReturnInteger); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnInteger(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnInteger(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnInteger(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnInteger(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnInteger(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ReturnInteger - /// - public ReturnInteger():base("MSForms.ReturnInteger") - { - - } - - /// - /// Creates a new instance of ReturnInteger - /// - ///registered ProgID - public ReturnInteger(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ReturnSingle.cs b/Source/MSForms/Classes/ReturnSingle.cs deleted file mode 100644 index 61886f4e46..0000000000 --- a/Source/MSForms/Classes/ReturnSingle.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass ReturnSingle - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class ReturnSingle : IReturnSingle - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ReturnSingle); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnSingle(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnSingle(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnSingle(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnSingle(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnSingle(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ReturnSingle - /// - public ReturnSingle():base("MSForms.ReturnSingle") - { - - } - - /// - /// Creates a new instance of ReturnSingle - /// - ///registered ProgID - public ReturnSingle(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ReturnString.cs b/Source/MSForms/Classes/ReturnString.cs deleted file mode 100644 index 735144b429..0000000000 --- a/Source/MSForms/Classes/ReturnString.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - #pragma warning restore - - #endregion - - /// - /// CoClass ReturnString - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - public class ReturnString : IReturnString - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ReturnString); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnString(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ReturnString(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnString(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnString(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ReturnString(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ReturnString - /// - public ReturnString():base("MSForms.ReturnString") - { - - } - - /// - /// Creates a new instance of ReturnString - /// - ///registered ProgID - public ReturnString(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - #endregion - - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ScrollBar.cs b/Source/MSForms/Classes/ScrollBar.cs deleted file mode 100644 index d9a24a1398..0000000000 --- a/Source/MSForms/Classes/ScrollBar.cs +++ /dev/null @@ -1,425 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void ScrollBar_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ScrollBar_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ScrollBar_ChangeEventHandler(); - public delegate void ScrollBar_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void ScrollBar_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ScrollBar_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void ScrollBar_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ScrollBar_ScrollEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass ScrollBar - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.ScrollbarEvents_SinkHelper))] - [ComEventInterface(typeof(Events.ScrollbarEvents))] - public class ScrollBar : IScrollbar, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.ScrollbarEvents_SinkHelper _scrollbarEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ScrollBar); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ScrollBar(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ScrollBar(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ScrollBar(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ScrollBar(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ScrollBar(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ScrollBar - /// - public ScrollBar():base("MSForms.ScrollBar") - { - - } - - /// - /// Creates a new instance of ScrollBar - /// - ///registered ProgID - public ScrollBar(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ScrollBar_ScrollEventHandler _ScrollEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ScrollBar_ScrollEventHandler ScrollEvent - { - add - { - CreateEventBridge(); - _ScrollEvent += value; - } - remove - { - _ScrollEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.ScrollbarEvents_SinkHelper.Id); - - - if(Events.ScrollbarEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _scrollbarEvents_SinkHelper = new Events.ScrollbarEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _scrollbarEvents_SinkHelper) - { - _scrollbarEvents_SinkHelper.Dispose(); - _scrollbarEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/SpinButton.cs b/Source/MSForms/Classes/SpinButton.cs deleted file mode 100644 index b634f8e8b2..0000000000 --- a/Source/MSForms/Classes/SpinButton.cs +++ /dev/null @@ -1,448 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void SpinButton_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void SpinButton_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void SpinButton_ChangeEventHandler(); - public delegate void SpinButton_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void SpinButton_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void SpinButton_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void SpinButton_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void SpinButton_SpinUpEventHandler(); - public delegate void SpinButton_SpinDownEventHandler(); - #pragma warning restore - - #endregion - - /// - /// CoClass SpinButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.SpinbuttonEvents_SinkHelper))] - [ComEventInterface(typeof(Events.SpinbuttonEvents))] - public class SpinButton : ISpinbutton, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.SpinbuttonEvents_SinkHelper _spinbuttonEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(SpinButton); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public SpinButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public SpinButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public SpinButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public SpinButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public SpinButton(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of SpinButton - /// - public SpinButton():base("MSForms.SpinButton") - { - - } - - /// - /// Creates a new instance of SpinButton - /// - ///registered ProgID - public SpinButton(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_SpinUpEventHandler _SpinUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_SpinUpEventHandler SpinUpEvent - { - add - { - CreateEventBridge(); - _SpinUpEvent += value; - } - remove - { - _SpinUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event SpinButton_SpinDownEventHandler _SpinDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event SpinButton_SpinDownEventHandler SpinDownEvent - { - add - { - CreateEventBridge(); - _SpinDownEvent += value; - } - remove - { - _SpinDownEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.SpinbuttonEvents_SinkHelper.Id); - - - if(Events.SpinbuttonEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _spinbuttonEvents_SinkHelper = new Events.SpinbuttonEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _spinbuttonEvents_SinkHelper) - { - _spinbuttonEvents_SinkHelper.Dispose(); - _spinbuttonEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/TabStrip.cs b/Source/MSForms/Classes/TabStrip.cs deleted file mode 100644 index d46f3ec33f..0000000000 --- a/Source/MSForms/Classes/TabStrip.cs +++ /dev/null @@ -1,517 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void TabStrip_BeforeDragOverEventHandler(Int32 index, NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void TabStrip_BeforeDropOrPasteEventHandler(Int32 index, NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void TabStrip_ChangeEventHandler(); - public delegate void TabStrip_ClickEventHandler(Int32 index); - public delegate void TabStrip_DblClickEventHandler(Int32 index, NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void TabStrip_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void TabStrip_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 Shift); - public delegate void TabStrip_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void TabStrip_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void TabStrip_MouseDownEventHandler(Int32 index, Int16 button, Int16 shift, Single x, Single y); - public delegate void TabStrip_MouseMoveEventHandler(Int32 index, Int16 button, Int16 shift, Single x, Single y); - public delegate void TabStrip_MouseUpEventHandler(Int32 index, Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass TabStrip - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.TabStripEvents_SinkHelper))] - [ComEventInterface(typeof(Events.TabStripEvents))] - public class TabStrip : ITabStrip, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.TabStripEvents_SinkHelper _tabStripEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(TabStrip); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public TabStrip(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public TabStrip(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public TabStrip(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public TabStrip(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public TabStrip(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of TabStrip - /// - public TabStrip():base("MSForms.TabStrip") - { - - } - - /// - /// Creates a new instance of TabStrip - /// - ///registered ProgID - public TabStrip(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TabStrip_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TabStrip_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.TabStripEvents_SinkHelper.Id); - - - if(Events.TabStripEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _tabStripEvents_SinkHelper = new Events.TabStripEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _tabStripEvents_SinkHelper) - { - _tabStripEvents_SinkHelper.Dispose(); - _tabStripEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/TextBox.cs b/Source/MSForms/Classes/TextBox.cs deleted file mode 100644 index 4ebb27228e..0000000000 --- a/Source/MSForms/Classes/TextBox.cs +++ /dev/null @@ -1,517 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void TextBox_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void TextBox_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void TextBox_ChangeEventHandler(); - public delegate void TextBox_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void TextBox_DropButtonClickEventHandler(); - public delegate void TextBox_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void TextBox_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void TextBox_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void TextBox_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void TextBox_MouseDownEventHandler(Int16 button, Int16 Shift, Single x, Single Y); - public delegate void TextBox_MouseMoveEventHandler(Int16 button, Int16 Shift, Single x, Single Y); - public delegate void TextBox_MouseUpEventHandler(Int16 button, Int16 Shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass TextBox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MdcTextEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MdcTextEvents))] - public class TextBox : IMdcText, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MdcTextEvents_SinkHelper _mdcTextEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(TextBox); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public TextBox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public TextBox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public TextBox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public TextBox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public TextBox(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of TextBox - /// - public TextBox():base("MSForms.TextBox") - { - - } - - /// - /// Creates a new instance of TextBox - /// - ///registered ProgID - public TextBox(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_DropButtonClickEventHandler _DropButtonClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_DropButtonClickEventHandler DropButtonClickEvent - { - add - { - CreateEventBridge(); - _DropButtonClickEvent += value; - } - remove - { - _DropButtonClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event TextBox_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event TextBox_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MdcTextEvents_SinkHelper.Id); - - - if(Events.MdcTextEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _mdcTextEvents_SinkHelper = new Events.MdcTextEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _mdcTextEvents_SinkHelper) - { - _mdcTextEvents_SinkHelper.Dispose(); - _mdcTextEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/ToggleButton.cs b/Source/MSForms/Classes/ToggleButton.cs deleted file mode 100644 index 91a4fecfe4..0000000000 --- a/Source/MSForms/Classes/ToggleButton.cs +++ /dev/null @@ -1,517 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void ToggleButton_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState dragState, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ToggleButton_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void ToggleButton_ChangeEventHandler(); - public delegate void ToggleButton_ClickEventHandler(); - public delegate void ToggleButton_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void ToggleButton_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void ToggleButton_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ToggleButton_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void ToggleButton_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void ToggleButton_MouseDownEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void ToggleButton_MouseMoveEventHandler(Int16 button, Int16 shift, Single x, Single y); - public delegate void ToggleButton_MouseUpEventHandler(Int16 button, Int16 shift, Single x, Single y); - #pragma warning restore - - #endregion - - /// - /// CoClass ToggleButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.MdcToggleButtonEvents_SinkHelper))] - [ComEventInterface(typeof(Events.MdcToggleButtonEvents))] - public class ToggleButton : IMdcToggleButton, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.MdcToggleButtonEvents_SinkHelper _mdcToggleButtonEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ToggleButton); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ToggleButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public ToggleButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ToggleButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ToggleButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ToggleButton(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of ToggleButton - /// - public ToggleButton():base("MSForms.ToggleButton") - { - - } - - /// - /// Creates a new instance of ToggleButton - /// - ///registered ProgID - public ToggleButton(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_ChangeEventHandler _ChangeEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_ChangeEventHandler ChangeEvent - { - add - { - CreateEventBridge(); - _ChangeEvent += value; - } - remove - { - _ChangeEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event ToggleButton_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event ToggleButton_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.MdcToggleButtonEvents_SinkHelper.Id); - - - if(Events.MdcToggleButtonEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _mdcToggleButtonEvents_SinkHelper = new Events.MdcToggleButtonEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _mdcToggleButtonEvents_SinkHelper) - { - _mdcToggleButtonEvents_SinkHelper.Dispose(); - _mdcToggleButtonEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/Classes/UserForm.cs b/Source/MSForms/Classes/UserForm.cs deleted file mode 100644 index 792c2d785a..0000000000 --- a/Source/MSForms/Classes/UserForm.cs +++ /dev/null @@ -1,609 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - #region Delegates - - #pragma warning disable - public delegate void UserForm_AddControlEventHandler(NetOffice.MSFormsApi.Control control); - public delegate void UserForm_BeforeDragOverEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Control control, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.Enums.fmDragState state, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void UserForm_BeforeDropOrPasteEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel, NetOffice.MSFormsApi.Control control, NetOffice.MSFormsApi.Enums.fmAction action, NetOffice.MSFormsApi.DataObject data, Single x, Single y, NetOffice.MSFormsApi.ReturnEffect effect, Int16 shift); - public delegate void UserForm_ClickEventHandler(); - public delegate void UserForm_DblClickEventHandler(NetOffice.MSFormsApi.ReturnBoolean cancel); - public delegate void UserForm_ErrorEventHandler(Int16 number, NetOffice.MSFormsApi.ReturnString description, Int32 sCode, string source, string helpFile, Int32 helpContext, NetOffice.MSFormsApi.ReturnBoolean cancelDisplay); - public delegate void UserForm_KeyDownEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 shift); - public delegate void UserForm_KeyPressEventHandler(NetOffice.MSFormsApi.ReturnInteger keyAscii); - public delegate void UserForm_KeyUpEventHandler(NetOffice.MSFormsApi.ReturnInteger keyCode, Int16 Shift); - public delegate void UserForm_LayoutEventHandler(); - public delegate void UserForm_MouseDownEventHandler(Int16 button, Int16 shift, Single X, Single Y); - public delegate void UserForm_MouseMoveEventHandler(Int16 button, Int16 shift, Single X, Single Y); - public delegate void UserForm_MouseUpEventHandler(Int16 button, Int16 shift, Single X, Single Y); - public delegate void UserForm_RemoveControlEventHandler(NetOffice.MSFormsApi.Control control); - public delegate void UserForm_ScrollEventHandler(NetOffice.MSFormsApi.Enums.fmScrollAction actionX, NetOffice.MSFormsApi.Enums.fmScrollAction actionY, Single requestDx, Single requestDy, NetOffice.MSFormsApi.ReturnSingle actualDx, NetOffice.MSFormsApi.ReturnSingle actualDy); - public delegate void UserForm_ZoomEventHandler(ref Int16 percent); - #pragma warning restore - - #endregion - - /// - /// CoClass UserForm - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsCoClass)] - [EventSink(typeof(Events.FormEvents_SinkHelper))] - [ComEventInterface(typeof(Events.FormEvents))] - public class UserForm : _UserForm, IEventBinding - { - #pragma warning disable - - #region Fields - - private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint; - private string _activeSinkId; - private static Type _type; - private Events.FormEvents_SinkHelper _formEvents_SinkHelper; - - #endregion - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - /// - /// Type Cache - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(UserForm); - return _type; - } - } - - #endregion - - #region Construction - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public UserForm(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - public UserForm(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public UserForm(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public UserForm(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public UserForm(ICOMObject replacedObject) : base(replacedObject) - { - - } - - /// - /// Creates a new instance of UserForm - /// - public UserForm():base("MSForms.UserForm") - { - - } - - /// - /// Creates a new instance of UserForm - /// - ///registered ProgID - public UserForm(string progId):base(progId) - { - - } - - #endregion - - #region Static CoClass Methods - #endregion - - #region Events - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_AddControlEventHandler _AddControlEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_AddControlEventHandler AddControlEvent - { - add - { - CreateEventBridge(); - _AddControlEvent += value; - } - remove - { - _AddControlEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_BeforeDragOverEventHandler _BeforeDragOverEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_BeforeDragOverEventHandler BeforeDragOverEvent - { - add - { - CreateEventBridge(); - _BeforeDragOverEvent += value; - } - remove - { - _BeforeDragOverEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_BeforeDropOrPasteEventHandler _BeforeDropOrPasteEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_BeforeDropOrPasteEventHandler BeforeDropOrPasteEvent - { - add - { - CreateEventBridge(); - _BeforeDropOrPasteEvent += value; - } - remove - { - _BeforeDropOrPasteEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_ClickEventHandler _ClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_ClickEventHandler ClickEvent - { - add - { - CreateEventBridge(); - _ClickEvent += value; - } - remove - { - _ClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_DblClickEventHandler _DblClickEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_DblClickEventHandler DblClickEvent - { - add - { - CreateEventBridge(); - _DblClickEvent += value; - } - remove - { - _DblClickEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_ErrorEventHandler _ErrorEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_ErrorEventHandler ErrorEvent - { - add - { - CreateEventBridge(); - _ErrorEvent += value; - } - remove - { - _ErrorEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_KeyDownEventHandler _KeyDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_KeyDownEventHandler KeyDownEvent - { - add - { - CreateEventBridge(); - _KeyDownEvent += value; - } - remove - { - _KeyDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_KeyPressEventHandler _KeyPressEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_KeyPressEventHandler KeyPressEvent - { - add - { - CreateEventBridge(); - _KeyPressEvent += value; - } - remove - { - _KeyPressEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_KeyUpEventHandler _KeyUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_KeyUpEventHandler KeyUpEvent - { - add - { - CreateEventBridge(); - _KeyUpEvent += value; - } - remove - { - _KeyUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_LayoutEventHandler _LayoutEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_LayoutEventHandler LayoutEvent - { - add - { - CreateEventBridge(); - _LayoutEvent += value; - } - remove - { - _LayoutEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_MouseDownEventHandler _MouseDownEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_MouseDownEventHandler MouseDownEvent - { - add - { - CreateEventBridge(); - _MouseDownEvent += value; - } - remove - { - _MouseDownEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_MouseMoveEventHandler _MouseMoveEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_MouseMoveEventHandler MouseMoveEvent - { - add - { - CreateEventBridge(); - _MouseMoveEvent += value; - } - remove - { - _MouseMoveEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_MouseUpEventHandler _MouseUpEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_MouseUpEventHandler MouseUpEvent - { - add - { - CreateEventBridge(); - _MouseUpEvent += value; - } - remove - { - _MouseUpEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_RemoveControlEventHandler _RemoveControlEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_RemoveControlEventHandler RemoveControlEvent - { - add - { - CreateEventBridge(); - _RemoveControlEvent += value; - } - remove - { - _RemoveControlEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_ScrollEventHandler _ScrollEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_ScrollEventHandler ScrollEvent - { - add - { - CreateEventBridge(); - _ScrollEvent += value; - } - remove - { - _ScrollEvent -= value; - } - } - - /// - /// SupportByVersion MSForms, 2 - /// - private event UserForm_ZoomEventHandler _ZoomEvent; - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public event UserForm_ZoomEventHandler ZoomEvent - { - add - { - CreateEventBridge(); - _ZoomEvent += value; - } - remove - { - _ZoomEvent -= value; - } - } - - #endregion - - #region IEventBinding - - /// - /// Creates active sink helper - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void CreateEventBridge() - { - if(false == Factory.Settings.EnableEvents) - return; - - if (null != _connectPoint) - return; - - if (null == _activeSinkId) - _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.FormEvents_SinkHelper.Id); - - - if(Events.FormEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) - { - _formEvents_SinkHelper = new Events.FormEvents_SinkHelper(this, _connectPoint); - return; - } - } - - /// - /// The instance use currently an event listener - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool EventBridgeInitialized - { - get - { - return (null != _connectPoint); - } - } - /// - /// Instance has one or more event recipients - /// - /// true if one or more event is active, otherwise false - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients() - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType); - } - - /// - /// Instance has one or more event recipients - /// - /// name of the event - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool HasEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Target methods from its actual event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Delegate[] GetEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Returns the current count of event recipients - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int GetCountOfEventRecipients(string eventName) - { - return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName); - } - - /// - /// Raise an instance event - /// - /// name of the event without 'Event' at the end - /// custom arguments for the event - /// count of called event recipients - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public int RaiseCustomEvent(string eventName, ref object[] paramsArray) - { - return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray); - } - /// - /// Stop listening events for the instance - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void DisposeEventBridge() - { - if( null != _formEvents_SinkHelper) - { - _formEvents_SinkHelper.Dispose(); - _formEvents_SinkHelper = null; - } - - _connectPoint = null; - } - - #endregion - - #pragma warning restore - } -} - diff --git a/Source/MSForms/DispatchInterfaces/Controls.cs b/Source/MSForms/DispatchInterfaces/Controls.cs deleted file mode 100644 index 03e62eb097..0000000000 --- a/Source/MSForms/DispatchInterfaces/Controls.cs +++ /dev/null @@ -1,394 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; -using NetOffice.CollectionsGeneric; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface Controls - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), Enumerator(Enumerator.Reference, EnumeratorInvoke.Property), HasIndexProperty(IndexInvoke.Method, "Item")] - public class Controls : COMObject, NetOffice.CollectionsGeneric.IEnumerableProvider - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Controls); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public Controls(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Controls(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Controls(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Controls(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Controls(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Controls(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Controls() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Controls(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 Count - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Count"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// object varg - [SupportByVersion("MSForms", 2)] - [NetRuntimeSystem.Runtime.CompilerServices.IndexerName("Item"), IndexProperty] - public object this[object varg] - { - get - { - return Factory.ExecuteVariantMethodGet(this, "Item", varg); - } - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Clear() - { - Factory.ExecuteMethod(this, "Clear"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 cx - /// Int32 cy - [SupportByVersion("MSForms", 2)] - public void _Move(Int32 cx, Int32 cy) - { - Factory.ExecuteMethod(this, "_Move", cx, cy); - } - - /// - /// SupportByVersion MSForms 2 - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void SelectAll() - { - Factory.ExecuteMethod(this, "SelectAll"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clsid - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control _AddByClass(Int32 clsid) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_AddByClass", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, clsid); - } - - /// - /// SupportByVersion MSForms 2 - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void AlignToGrid() - { - Factory.ExecuteMethod(this, "AlignToGrid"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void BringForward() - { - Factory.ExecuteMethod(this, "BringForward"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void BringToFront() - { - Factory.ExecuteMethod(this, "BringToFront"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void Copy() - { - Factory.ExecuteMethod(this, "Copy"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void Cut() - { - Factory.ExecuteMethod(this, "Cut"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public object Enum() - { - return Factory.ExecuteVariantMethodGet(this, "Enum"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control _GetItemByIndex(Int32 lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByIndex", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string pstr - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control _GetItemByName(string pstr) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByName", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, pstr); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 iD - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control _GetItemByID(Int32 iD) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByID", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, iD); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void SendBackward() - { - Factory.ExecuteMethod(this, "SendBackward"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void SendToBack() - { - Factory.ExecuteMethod(this, "SendToBack"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Single cx - /// Single cy - [SupportByVersion("MSForms", 2)] - public void Move(Single cx, Single cy) - { - Factory.ExecuteMethod(this, "Move", cx, cy); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string bstrProgID - /// optional object name - /// optional object visible - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control Add(string bstrProgID, object name, object visible) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, bstrProgID, name, visible); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string bstrProgID - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control Add(string bstrProgID) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, bstrProgID); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string bstrProgID - /// optional object name - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control Add(string bstrProgID, object name) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, bstrProgID, name); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object varg - [SupportByVersion("MSForms", 2)] - public void Remove(object varg) - { - Factory.ExecuteMethod(this, "Remove", varg); - } - - #endregion - - #region IEnumerableProvider - - ICOMObject IEnumerableProvider.GetComObjectEnumerator(ICOMObject parent) - { - return NetOffice.Utils.GetComObjectEnumeratorAsProperty(parent, this, false); - } - - IEnumerable IEnumerableProvider.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator) - { - return NetOffice.Utils.FetchVariantComObjectEnumerator(parent, enumerator, true); - } - - #endregion - - #region IEnumerable - - /// - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - public IEnumerator GetEnumerator() - { - NetRuntimeSystem.Collections.IEnumerable innerEnumerator = (this as NetRuntimeSystem.Collections.IEnumerable); - foreach (object item in innerEnumerator) - yield return item; - } - - #endregion - - #region IEnumerable - - /// - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator() - { - return NetOffice.Utils.GetProxyEnumeratorAsProperty(this, true); - } - - #endregion - - #pragma warning restore - } -} \ No newline at end of file diff --git a/Source/MSForms/DispatchInterfaces/Font.cs b/Source/MSForms/DispatchInterfaces/Font.cs deleted file mode 100644 index 45651c9154..0000000000 --- a/Source/MSForms/DispatchInterfaces/Font.cs +++ /dev/null @@ -1,254 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface Font - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class Font : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Font); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public Font(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Font(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Font(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Font(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Font(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Font(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Font() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Font(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Name - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Name"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Name", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public float Size - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "Size"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Size", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Bold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Bold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Bold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Italic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Italic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Italic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Underline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Underline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Underline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Strikethrough - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Strikethrough"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Strikethrough", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 Weight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "Weight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Weight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 Charset - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "Charset"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Charset", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/ICommandButton.cs b/Source/MSForms/DispatchInterfaces/ICommandButton.cs deleted file mode 100644 index 343eacd2d3..0000000000 --- a/Source/MSForms/DispatchInterfaces/ICommandButton.cs +++ /dev/null @@ -1,542 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface ICommandButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class ICommandButton : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ICommandButton); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public ICommandButton(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ICommandButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ICommandButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ICommandButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ICommandButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ICommandButton(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ICommandButton() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ICommandButton(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoSize - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBackStyle BackStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BackStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BackStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool TakeFocusOnClick - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "TakeFocusOnClick"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TakeFocusOnClick", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Locked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Locked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Locked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture Picture - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "Picture", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "Picture", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPicturePosition PicturePosition - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PicturePosition"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PicturePosition", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Accelerator - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Accelerator"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Accelerator", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool WordWrap - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "WordWrap"); - } - set - { - Factory.ExecuteValuePropertySet(this, "WordWrap", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Value - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IControl.cs b/Source/MSForms/DispatchInterfaces/IControl.cs deleted file mode 100644 index be32e9546f..0000000000 --- a/Source/MSForms/DispatchInterfaces/IControl.cs +++ /dev/null @@ -1,834 +0,0 @@ -using System.Reflection; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IControl - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IControl : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IControl); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IControl(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IControl(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IControl(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IControl(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IControl(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IControl(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IControl() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IControl(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Cancel - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Cancel"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Cancel", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string ControlSource - { - get - { - return Factory.ExecuteStringPropertyGet(this, "ControlSource"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ControlSource", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string ControlTipText - { - get - { - return Factory.ExecuteStringPropertyGet(this, "ControlTipText"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ControlTipText", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Default - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Default"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Default", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single Height - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "Height"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Height", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 HelpContextID - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "HelpContextID"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HelpContextID", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool InSelection - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "InSelection"); - } - set - { - Factory.ExecuteValuePropertySet(this, "InSelection", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmLayoutEffect LayoutEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "LayoutEffect"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single Left - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "Left"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Left", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Name - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Name"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Name", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single OldHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "OldHeight"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single OldLeft - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "OldLeft"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single OldTop - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "OldTop"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single OldWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "OldWidth"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// Unknown COM Proxy - /// - [SupportByVersion("MSForms", 2), ProxyResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object Object - { - get - { - return Factory.ExecuteReferencePropertyGet(this, "Object"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// Unknown COM Proxy - /// - [SupportByVersion("MSForms", 2), ProxyResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object Parent - { - get - { - return Factory.ExecuteReferencePropertyGet(this, "Parent"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string RowSource - { - get - { - return Factory.ExecuteStringPropertyGet(this, "RowSource"); - } - set - { - Factory.ExecuteValuePropertySet(this, "RowSource", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 RowSourceType - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "RowSourceType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "RowSourceType", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 TabIndex - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "TabIndex"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabIndex", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool TabStop - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "TabStop"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabStop", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Tag - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Tag"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Tag", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single Top - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "Top"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Top", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object BoundValue - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "BoundValue"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "BoundValue", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Visible - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Visible"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Visible", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single Width - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "Width"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Width", value); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 height - [SupportByVersion("MSForms", 2)] - public void _SetHeight(Int32 height) - { - Factory.ExecuteMethod(this, "_SetHeight", height); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 height - [SupportByVersion("MSForms", 2)] - public void _GetHeight(out Int32 height) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - height = 0; - object[] paramsArray = Invoker.ValidateParamsArray(height); - Invoker.Method(this, "_GetHeight", paramsArray, modifiers); - height = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 left - [SupportByVersion("MSForms", 2)] - public void _SetLeft(Int32 left) - { - Factory.ExecuteMethod(this, "_SetLeft", left); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 left - [SupportByVersion("MSForms", 2)] - public void _GetLeft(out Int32 left) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - left = 0; - object[] paramsArray = Invoker.ValidateParamsArray(left); - Invoker.Method(this, "_GetLeft", paramsArray, modifiers); - left = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 oldHeight - [SupportByVersion("MSForms", 2)] - public void _GetOldHeight(out Int32 oldHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - oldHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(oldHeight); - Invoker.Method(this, "_GetOldHeight", paramsArray, modifiers); - oldHeight = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 oldLeft - [SupportByVersion("MSForms", 2)] - public void _GetOldLeft(out Int32 oldLeft) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - oldLeft = 0; - object[] paramsArray = Invoker.ValidateParamsArray(oldLeft); - Invoker.Method(this, "_GetOldLeft", paramsArray, modifiers); - oldLeft = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 oldTop - [SupportByVersion("MSForms", 2)] - public void _GetOldTop(out Int32 oldTop) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - oldTop = 0; - object[] paramsArray = Invoker.ValidateParamsArray(oldTop); - Invoker.Method(this, "_GetOldTop", paramsArray, modifiers); - oldTop = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 oldWidth - [SupportByVersion("MSForms", 2)] - public void _GetOldWidth(out Int32 oldWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - oldWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(oldWidth); - Invoker.Method(this, "_GetOldWidth", paramsArray, modifiers); - oldWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 top - [SupportByVersion("MSForms", 2)] - public void _SetTop(Int32 top) - { - Factory.ExecuteMethod(this, "_SetTop", top); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 top - [SupportByVersion("MSForms", 2)] - public void _GetTop(out Int32 top) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - top = 0; - object[] paramsArray = Invoker.ValidateParamsArray(top); - Invoker.Method(this, "_GetTop", paramsArray, modifiers); - top = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 width - [SupportByVersion("MSForms", 2)] - public void _SetWidth(Int32 width) - { - Factory.ExecuteMethod(this, "_SetWidth", width); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 width - [SupportByVersion("MSForms", 2)] - public void _GetWidth(out Int32 width) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - width = 0; - object[] paramsArray = Invoker.ValidateParamsArray(width); - Invoker.Method(this, "_GetWidth", paramsArray, modifiers); - width = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object left - /// optional object top - /// optional object width - /// optional object height - /// optional object layout - [SupportByVersion("MSForms", 2)] - public void Move(object left, object top, object width, object height, object layout) - { - Factory.ExecuteMethod(this, "Move", new object[]{ left, top, width, height, layout }); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Move() - { - Factory.ExecuteMethod(this, "Move"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object left - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Move(object left) - { - Factory.ExecuteMethod(this, "Move", left); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object left - /// optional object top - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Move(object left, object top) - { - Factory.ExecuteMethod(this, "Move", left, top); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object left - /// optional object top - /// optional object width - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Move(object left, object top, object width) - { - Factory.ExecuteMethod(this, "Move", left, top, width); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object left - /// optional object top - /// optional object width - /// optional object height - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Move(object left, object top, object width, object height) - { - Factory.ExecuteMethod(this, "Move", left, top, width, height); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object zPosition - [SupportByVersion("MSForms", 2)] - public void ZOrder(object zPosition) - { - Factory.ExecuteMethod(this, "ZOrder", zPosition); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void ZOrder() - { - Factory.ExecuteMethod(this, "ZOrder"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// bool selectInGroup - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - [SupportByVersion("MSForms", 2)] - public void Select(bool selectInGroup) - { - Factory.ExecuteMethod(this, "Select", selectInGroup); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void SetFocus() - { - Factory.ExecuteMethod(this, "SetFocus"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public Int32 _GethWnd() - { - return Factory.ExecuteInt32MethodGet(this, "_GethWnd"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public Int32 _GetID() - { - return Factory.ExecuteInt32MethodGet(this, "_GetID"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 left - /// Int32 top - /// Int32 width - /// Int32 height - [SupportByVersion("MSForms", 2)] - public void _Move(Int32 left, Int32 top, Int32 width, Int32 height) - { - Factory.ExecuteMethod(this, "_Move", left, top, width, height); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// NetOffice.MSFormsApi.Enums.fmZOrder zPosition - [SupportByVersion("MSForms", 2)] - public void _ZOrder(NetOffice.MSFormsApi.Enums.fmZOrder zPosition) - { - Factory.ExecuteMethod(this, "_ZOrder", zPosition); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IDataAutoWrapper.cs b/Source/MSForms/DispatchInterfaces/IDataAutoWrapper.cs deleted file mode 100644 index 2c4df43f7c..0000000000 --- a/Source/MSForms/DispatchInterfaces/IDataAutoWrapper.cs +++ /dev/null @@ -1,217 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IDataAutoWrapper - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IDataAutoWrapper : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IDataAutoWrapper); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IDataAutoWrapper(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IDataAutoWrapper(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IDataAutoWrapper(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IDataAutoWrapper(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IDataAutoWrapper(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IDataAutoWrapper(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IDataAutoWrapper() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IDataAutoWrapper(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Clear() - { - Factory.ExecuteMethod(this, "Clear"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object format - [SupportByVersion("MSForms", 2)] - public bool GetFormat(object format) - { - return Factory.ExecuteBoolMethodGet(this, "GetFormat", format); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object format - [SupportByVersion("MSForms", 2)] - public string GetText(object format) - { - return Factory.ExecuteStringMethodGet(this, "GetText", format); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public string GetText() - { - return Factory.ExecuteStringMethodGet(this, "GetText"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string text - /// optional object format - [SupportByVersion("MSForms", 2)] - public void SetText(string text, object format) - { - Factory.ExecuteMethod(this, "SetText", text, format); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string text - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void SetText(string text) - { - Factory.ExecuteMethod(this, "SetText", text); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void PutInClipboard() - { - Factory.ExecuteMethod(this, "PutInClipboard"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void GetFromClipboard() - { - Factory.ExecuteMethod(this, "GetFromClipboard"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object oKEffect - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmDropEffect StartDrag(object oKEffect) - { - return Factory.ExecuteEnumMethodGet(this, "StartDrag", oKEffect); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmDropEffect StartDrag() - { - return Factory.ExecuteEnumMethodGet(this, "StartDrag"); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IImage.cs b/Source/MSForms/DispatchInterfaces/IImage.cs deleted file mode 100644 index 5c3870f4c1..0000000000 --- a/Source/MSForms/DispatchInterfaces/IImage.cs +++ /dev/null @@ -1,345 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IImage - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IImage : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IImage); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IImage(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IImage(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IImage(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IImage(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IImage(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IImage(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IImage() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IImage(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoSize - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBackStyle BackStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BackStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BackStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BorderColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BorderColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BorderColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBorderStyle BorderStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BorderStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BorderStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture Picture - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "Picture", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "Picture", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPictureSizeMode PictureSizeMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PictureSizeMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PictureSizeMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPictureAlignment PictureAlignment - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PictureAlignment"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PictureAlignment", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool PictureTiling - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "PictureTiling"); - } - set - { - Factory.ExecuteValuePropertySet(this, "PictureTiling", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmSpecialEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/ILabelControl.cs b/Source/MSForms/DispatchInterfaces/ILabelControl.cs deleted file mode 100644 index 39c8dfa741..0000000000 --- a/Source/MSForms/DispatchInterfaces/ILabelControl.cs +++ /dev/null @@ -1,577 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface ILabelControl - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class ILabelControl : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ILabelControl); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public ILabelControl(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ILabelControl(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ILabelControl(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ILabelControl(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ILabelControl(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ILabelControl(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ILabelControl() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ILabelControl(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoSize - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBackStyle BackStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BackStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BackStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BorderColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BorderColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BorderColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBorderStyle BorderStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BorderStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BorderStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture Picture - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "Picture", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "Picture", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPicturePosition PicturePosition - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PicturePosition"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PicturePosition", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmSpecialEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTextAlign TextAlign - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TextAlign"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TextAlign", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool WordWrap - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "WordWrap"); - } - set - { - Factory.ExecuteValuePropertySet(this, "WordWrap", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Accelerator - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Accelerator"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Accelerator", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string _Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "_Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "_Value", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMdcCheckBox.cs b/Source/MSForms/DispatchInterfaces/IMdcCheckBox.cs deleted file mode 100644 index 86fe20c8f8..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMdcCheckBox.cs +++ /dev/null @@ -1,674 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IMdcCheckBox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMdcCheckBox : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMdcCheckBox); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcCheckBox(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcCheckBox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCheckBox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCheckBox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCheckBox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCheckBox(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCheckBox() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCheckBox(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Accelerator - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Accelerator"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Accelerator", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmAlignment Alignment - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Alignment"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Alignment", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoSize - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBackStyle BackStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BackStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BackStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool BordersSuppress - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "BordersSuppress"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BordersSuppress", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Locked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Locked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Locked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMultiSelect MultiSelect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MultiSelect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MultiSelect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture Picture - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "Picture", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "Picture", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPicturePosition PicturePosition - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PicturePosition"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PicturePosition", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmButtonEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool TripleState - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "TripleState"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TripleState", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool Valid - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Valid"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object Value - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool WordWrap - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "WordWrap"); - } - set - { - Factory.ExecuteValuePropertySet(this, "WordWrap", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmDisplayStyle DisplayStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DisplayStyle"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string GroupName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "GroupName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "GroupName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTextAlign TextAlign - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TextAlign"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TextAlign", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMdcCombo.cs b/Source/MSForms/DispatchInterfaces/IMdcCombo.cs deleted file mode 100644 index 6a5a6684fc..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMdcCombo.cs +++ /dev/null @@ -1,1501 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// IMdcCombo - /// - [SyntaxBypass] - public class IMdcCombo_ : COMObject - { - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcCombo_(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcCombo_(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - /// object there has created the proxy - /// inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo_(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - /// object there has created the proxy - /// inner wrapped COM proxy - /// Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo_(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo_(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - /// object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo_(ICOMObject replacedObject) : base(replacedObject) - { - } - - /// - /// Hidden stub .ctor - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo_() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo_(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - /// optional object pvargIndex - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_Column(object pvargColumn, object pvargIndex) - { - return Factory.ExecuteVariantPropertyGet(this, "Column", pvargColumn, pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - /// optional object pvargIndex - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_Column(object pvargColumn, object pvargIndex, object value) - { - Factory.ExecutePropertySet(this, "Column", pvargColumn, pvargIndex, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_Column - /// - /// optional object pvargColumn - /// optional object pvargIndex - [SupportByVersion("MSForms", 2), Redirect("get_Column")] - public object Column(object pvargColumn, object pvargIndex) - { - return get_Column(pvargColumn, pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_Column(object pvargColumn) - { - return Factory.ExecuteVariantPropertyGet(this, "Column", pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_Column(object pvargColumn, object value) - { - Factory.ExecutePropertySet(this, "Column", pvargColumn, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_Column - /// - /// optional object pvargColumn - [SupportByVersion("MSForms", 2), Redirect("get_Column")] - public object Column(object pvargColumn) - { - return get_Column(pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - /// optional object pvargColumn - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_List(object pvargIndex, object pvargColumn) - { - return Factory.ExecuteVariantPropertyGet(this, "List", pvargIndex, pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - /// optional object pvargColumn - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_List(object pvargIndex, object pvargColumn, object value) - { - Factory.ExecutePropertySet(this, "List", pvargIndex, pvargColumn, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_List - /// - /// optional object pvargIndex - /// optional object pvargColumn - [SupportByVersion("MSForms", 2), Redirect("get_List")] - public object List(object pvargIndex, object pvargColumn) - { - return get_List(pvargIndex, pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_List(object pvargIndex) - { - return Factory.ExecuteVariantPropertyGet(this, "List", pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_List(object pvargIndex, object value) - { - Factory.ExecutePropertySet(this, "List", pvargIndex, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_List - /// - /// optional object pvargIndex - [SupportByVersion("MSForms", 2), Redirect("get_List")] - public object List(object pvargIndex) - { - return get_List(pvargIndex); - } - - #endregion - - #region Methods - - #endregion - } - - /// - /// DispatchInterface IMdcCombo - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMdcCombo : IMdcCombo_ - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMdcCombo); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcCombo(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcCombo(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcCombo(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoSize - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoTab - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoTab"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoTab", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoWordSelect - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoWordSelect"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoWordSelect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBackStyle BackStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BackStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BackStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BorderColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BorderColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BorderColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBorderStyle BorderStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BorderStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BorderStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool BordersSuppress - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "BordersSuppress"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BordersSuppress", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object BoundColumn - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "BoundColumn"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "BoundColumn", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanPaste - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanPaste"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ColumnCount - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ColumnCount"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ColumnCount", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool ColumnHeads - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "ColumnHeads"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ColumnHeads", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string ColumnWidths - { - get - { - return Factory.ExecuteStringPropertyGet(this, "ColumnWidths"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ColumnWidths", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurTargetX - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurTargetX"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurTargetY - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurTargetY"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurX - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurX"); - } - set - { - Factory.ExecuteValuePropertySet(this, "CurX", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmDropButtonStyle DropButtonStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DropButtonStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "DropButtonStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool HideSelection - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "HideSelection"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HideSelection", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 LineCount - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "LineCount"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 ListCount - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ListCount"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// Unknown COM Proxy - /// - [SupportByVersion("MSForms", 2), ProxyResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object ListCursor - { - get - { - return Factory.ExecuteReferencePropertyGet(this, "ListCursor"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "ListCursor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object ListIndex - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "ListIndex"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "ListIndex", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ListRows - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ListRows"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ListRows", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmListStyle ListStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ListStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ListStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object ListWidth - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "ListWidth"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "ListWidth", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Locked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Locked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Locked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMatchEntry MatchEntry - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MatchEntry"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MatchEntry", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool MatchFound - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "MatchFound"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool MatchRequired - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "MatchRequired"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MatchRequired", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 MaxLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "MaxLength"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MaxLength", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool SelectionMargin - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "SelectionMargin"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelectionMargin", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 SelLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "SelLength"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelLength", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 SelStart - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "SelStart"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelStart", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string SelText - { - get - { - return Factory.ExecuteStringPropertyGet(this, "SelText"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelText", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmShowDropButtonWhen ShowDropButtonWhen - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ShowDropButtonWhen"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ShowDropButtonWhen", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmSpecialEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmStyle Style - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Style"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Style", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Text - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Text"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Text", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTextAlign TextAlign - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TextAlign"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TextAlign", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object TextColumn - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "TextColumn"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "TextColumn", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 TextLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "TextLength"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object TopIndex - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "TopIndex"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "TopIndex", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool Valid - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Valid"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object Value - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object Column - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Column"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Column", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object List - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "List"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "List", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmIMEMode IMEMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "IMEMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "IMEMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmEnterFieldBehavior EnterFieldBehavior - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "EnterFieldBehavior"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "EnterFieldBehavior", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmDragBehavior DragBehavior - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DragBehavior"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "DragBehavior", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmDisplayStyle DisplayStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DisplayStyle"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object pvargItem - /// optional object pvargIndex - [SupportByVersion("MSForms", 2)] - public void AddItem(object pvargItem, object pvargIndex) - { - Factory.ExecuteMethod(this, "AddItem", pvargItem, pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void AddItem() - { - Factory.ExecuteMethod(this, "AddItem"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object pvargItem - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void AddItem(object pvargItem) - { - Factory.ExecuteMethod(this, "AddItem", pvargItem); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Clear() - { - Factory.ExecuteMethod(this, "Clear"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void DropDown() - { - Factory.ExecuteMethod(this, "DropDown"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object pvargIndex - [SupportByVersion("MSForms", 2)] - public void RemoveItem(object pvargIndex) - { - Factory.ExecuteMethod(this, "RemoveItem", pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Copy() - { - Factory.ExecuteMethod(this, "Copy"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Cut() - { - Factory.ExecuteMethod(this, "Cut"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Paste() - { - Factory.ExecuteMethod(this, "Paste"); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMdcList.cs b/Source/MSForms/DispatchInterfaces/IMdcList.cs deleted file mode 100644 index 078b785547..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMdcList.cs +++ /dev/null @@ -1,1142 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// IMdcList - /// - [SyntaxBypass] - public class IMdcList_ : COMObject - { - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcList_(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcList_(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - /// object there has created the proxy - /// inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList_(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - /// object there has created the proxy - /// inner wrapped COM proxy - /// Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList_(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList_(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - /// object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList_(ICOMObject replacedObject) : base(replacedObject) - { - } - - /// - /// Hidden stub .ctor - /// - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList_() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList_(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - /// optional object pvargIndex - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_Column(object pvargColumn, object pvargIndex) - { - return Factory.ExecuteVariantPropertyGet(this, "Column", pvargColumn, pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - /// optional object pvargIndex - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_Column(object pvargColumn, object pvargIndex, object value) - { - Factory.ExecutePropertySet(this, "Column", pvargColumn, pvargIndex, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_Column - /// - /// optional object pvargColumn - /// optional object pvargIndex - [SupportByVersion("MSForms", 2), Redirect("get_Column")] - public object Column(object pvargColumn, object pvargIndex) - { - return get_Column(pvargColumn, pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_Column(object pvargColumn) - { - return Factory.ExecuteVariantPropertyGet(this, "Column", pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargColumn - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_Column(object pvargColumn, object value) - { - Factory.ExecutePropertySet(this, "Column", pvargColumn, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_Column - /// - /// optional object pvargColumn - [SupportByVersion("MSForms", 2), Redirect("get_Column")] - public object Column(object pvargColumn) - { - return get_Column(pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - /// optional object pvargColumn - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_List(object pvargIndex, object pvargColumn) - { - return Factory.ExecuteVariantPropertyGet(this, "List", pvargIndex, pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - /// optional object pvargColumn - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_List(object pvargIndex, object pvargColumn, object value) - { - Factory.ExecutePropertySet(this, "List", pvargIndex, pvargColumn, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_List - /// - /// optional object pvargIndex - /// optional object pvargColumn - [SupportByVersion("MSForms", 2), Redirect("get_List")] - public object List(object pvargIndex, object pvargColumn) - { - return get_List(pvargIndex, pvargColumn); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object get_List(object pvargIndex) - { - return Factory.ExecuteVariantPropertyGet(this, "List", pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// optional object pvargIndex - /// optional object value - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_List(object pvargIndex, object value) - { - Factory.ExecutePropertySet(this, "List", pvargIndex, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_List - /// - /// optional object pvargIndex - [SupportByVersion("MSForms", 2), Redirect("get_List")] - public object List(object pvargIndex) - { - return get_List(pvargIndex); - } - - #endregion - - #region Methods - - #endregion - - } - - /// - /// DispatchInterface IMdcList - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMdcList : IMdcList_ - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMdcList); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcList(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcList(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcList(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BorderColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BorderColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BorderColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBorderStyle BorderStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BorderStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BorderStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool BordersSuppress - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "BordersSuppress"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BordersSuppress", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object BoundColumn - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "BoundColumn"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "BoundColumn", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ColumnCount - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ColumnCount"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ColumnCount", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool ColumnHeads - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "ColumnHeads"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ColumnHeads", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string ColumnWidths - { - get - { - return Factory.ExecuteStringPropertyGet(this, "ColumnWidths"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ColumnWidths", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool IntegralHeight - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "IntegralHeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "IntegralHeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 ListCount - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ListCount"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// Unknown COM Proxy - /// - [SupportByVersion("MSForms", 2), ProxyResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object ListCursor - { - get - { - return Factory.ExecuteReferencePropertyGet(this, "ListCursor"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "ListCursor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object ListIndex - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "ListIndex"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "ListIndex", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmListStyle ListStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ListStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ListStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object ListWidth - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "ListWidth"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "ListWidth", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Locked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Locked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Locked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMatchEntry MatchEntry - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MatchEntry"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MatchEntry", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMultiSelect MultiSelect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MultiSelect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MultiSelect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmSpecialEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Text - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Text"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Text", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object TextColumn - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "TextColumn"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "TextColumn", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object TopIndex - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "TopIndex"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "TopIndex", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool Valid - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Valid"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object Value - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object Column - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Column"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Column", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object List - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "List"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "List", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// object pvargIndex - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool get_Selected(object pvargIndex) - { - return Factory.ExecuteBoolPropertyGet(this, "Selected", pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - /// object pvargIndex - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public void set_Selected(object pvargIndex, bool value) - { - Factory.ExecutePropertySet(this, "Selected", pvargIndex, value); - } - - /// - /// SupportByVersion MSForms 2 - /// Alias for get_Selected - /// - /// object pvargIndex - [SupportByVersion("MSForms", 2), Redirect("get_Selected")] - public bool Selected(object pvargIndex) - { - return get_Selected(pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmIMEMode IMEMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "IMEMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "IMEMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmDisplayStyle DisplayStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DisplayStyle"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTextAlign TextAlign - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TextAlign"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TextAlign", value); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object pvargItem - /// optional object pvargIndex - [SupportByVersion("MSForms", 2)] - public void AddItem(object pvargItem, object pvargIndex) - { - Factory.ExecuteMethod(this, "AddItem", pvargItem, pvargIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void AddItem() - { - Factory.ExecuteMethod(this, "AddItem"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object pvargItem - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void AddItem(object pvargItem) - { - Factory.ExecuteMethod(this, "AddItem", pvargItem); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Clear() - { - Factory.ExecuteMethod(this, "Clear"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object pvargIndex - [SupportByVersion("MSForms", 2)] - public void RemoveItem(object pvargIndex) - { - Factory.ExecuteMethod(this, "RemoveItem", pvargIndex); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMdcOptionButton.cs b/Source/MSForms/DispatchInterfaces/IMdcOptionButton.cs deleted file mode 100644 index 2e5b4253ad..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMdcOptionButton.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IMdcOptionButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMdcOptionButton : IMdcCheckBox - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMdcOptionButton); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcOptionButton(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcOptionButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcOptionButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcOptionButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcOptionButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcOptionButton(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcOptionButton() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcOptionButton(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMdcText.cs b/Source/MSForms/DispatchInterfaces/IMdcText.cs deleted file mode 100644 index 9900f8e93e..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMdcText.cs +++ /dev/null @@ -1,1064 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IMdcText - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMdcText : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMdcText); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcText(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcText(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcText(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcText(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcText(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcText(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcText() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcText(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoSize - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoTab - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoTab"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoTab", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool AutoWordSelect - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "AutoWordSelect"); - } - set - { - Factory.ExecuteValuePropertySet(this, "AutoWordSelect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBackStyle BackStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BackStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BackStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BorderColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BorderColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BorderColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBorderStyle BorderStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BorderStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BorderStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool BordersSuppress - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "BordersSuppress"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BordersSuppress", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanPaste - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanPaste"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurLine - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurLine"); - } - set - { - Factory.ExecuteValuePropertySet(this, "CurLine", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurTargetX - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurTargetX"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurTargetY - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurTargetY"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurX - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurX"); - } - set - { - Factory.ExecuteValuePropertySet(this, "CurX", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 CurY - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "CurY"); - } - set - { - Factory.ExecuteValuePropertySet(this, "CurY", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmDropButtonStyle DropButtonStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DropButtonStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "DropButtonStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool EnterKeyBehavior - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "EnterKeyBehavior"); - } - set - { - Factory.ExecuteValuePropertySet(this, "EnterKeyBehavior", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool HideSelection - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "HideSelection"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HideSelection", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool IntegralHeight - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "IntegralHeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "IntegralHeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 LineCount - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "LineCount"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Locked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Locked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Locked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 MaxLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "MaxLength"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MaxLength", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool MultiLine - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "MultiLine"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MultiLine", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string PasswordChar - { - get - { - return Factory.ExecuteStringPropertyGet(this, "PasswordChar"); - } - set - { - Factory.ExecuteValuePropertySet(this, "PasswordChar", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmScrollBars ScrollBars - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ScrollBars"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ScrollBars", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool SelectionMargin - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "SelectionMargin"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelectionMargin", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 SelLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "SelLength"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelLength", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 SelStart - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "SelStart"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelStart", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string SelText - { - get - { - return Factory.ExecuteStringPropertyGet(this, "SelText"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SelText", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmShowDropButtonWhen ShowDropButtonWhen - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ShowDropButtonWhen"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ShowDropButtonWhen", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmSpecialEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool TabKeyBehavior - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "TabKeyBehavior"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabKeyBehavior", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Text - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Text"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Text", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTextAlign TextAlign - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TextAlign"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TextAlign", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 TextLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "TextLength"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool Valid - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Valid"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object Value - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool WordWrap - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "WordWrap"); - } - set - { - Factory.ExecuteValuePropertySet(this, "WordWrap", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmIMEMode IMEMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "IMEMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "IMEMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmEnterFieldBehavior EnterFieldBehavior - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "EnterFieldBehavior"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "EnterFieldBehavior", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmDragBehavior DragBehavior - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DragBehavior"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "DragBehavior", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmDisplayStyle DisplayStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DisplayStyle"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Copy() - { - Factory.ExecuteMethod(this, "Copy"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Cut() - { - Factory.ExecuteMethod(this, "Cut"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Paste() - { - Factory.ExecuteMethod(this, "Paste"); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMdcToggleButton.cs b/Source/MSForms/DispatchInterfaces/IMdcToggleButton.cs deleted file mode 100644 index 416b976460..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMdcToggleButton.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IMdcToggleButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMdcToggleButton : IMdcCheckBox - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMdcToggleButton); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMdcToggleButton(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMdcToggleButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcToggleButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcToggleButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcToggleButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcToggleButton(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcToggleButton() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMdcToggleButton(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IMultiPage.cs b/Source/MSForms/DispatchInterfaces/IMultiPage.cs deleted file mode 100644 index b5178089ef..0000000000 --- a/Source/MSForms/DispatchInterfaces/IMultiPage.cs +++ /dev/null @@ -1,510 +0,0 @@ -using System.Reflection; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IMultiPage - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IMultiPage : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IMultiPage); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IMultiPage(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IMultiPage(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMultiPage(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMultiPage(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMultiPage(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMultiPage(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMultiPage() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IMultiPage(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool MultiRow - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "MultiRow"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MultiRow", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTabStyle Style - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Style"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Style", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTabOrientation TabOrientation - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TabOrientation"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TabOrientation", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Page SelectedItem - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "SelectedItem", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Pages Pages - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "Pages", NetOffice.MSFormsApi.Pages.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Value - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single TabFixedWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "TabFixedWidth"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabFixedWidth", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single TabFixedHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "TabFixedHeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabFixedHeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 width - [SupportByVersion("MSForms", 2)] - public void _SetTabFixedWidth(Int32 width) - { - Factory.ExecuteMethod(this, "_SetTabFixedWidth", width); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 width - [SupportByVersion("MSForms", 2)] - public void _GetTabFixedWidth(out Int32 width) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - width = 0; - object[] paramsArray = Invoker.ValidateParamsArray(width); - Invoker.Method(this, "_GetTabFixedWidth", paramsArray, modifiers); - width = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 height - [SupportByVersion("MSForms", 2)] - public void _SetTabFixedHeight(Int32 height) - { - Factory.ExecuteMethod(this, "_SetTabFixedHeight", height); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 height - [SupportByVersion("MSForms", 2)] - public void _GetTabFixedHeight(out Int32 height) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - height = 0; - object[] paramsArray = Invoker.ValidateParamsArray(height); - Invoker.Method(this, "_GetTabFixedHeight", paramsArray, modifiers); - height = (Int32)paramsArray[0]; - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IOptionFrame.cs b/Source/MSForms/DispatchInterfaces/IOptionFrame.cs deleted file mode 100644 index ff95940411..0000000000 --- a/Source/MSForms/DispatchInterfaces/IOptionFrame.cs +++ /dev/null @@ -1,1021 +0,0 @@ -using System.Reflection; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IOptionFrame - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IOptionFrame : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IOptionFrame); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IOptionFrame(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IOptionFrame(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IOptionFrame(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IOptionFrame(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IOptionFrame(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IOptionFrame(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IOptionFrame() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IOptionFrame(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Control ActiveControl - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "ActiveControl", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BorderColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BorderColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BorderColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmBorderStyle BorderStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "BorderStyle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "BorderStyle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanPaste - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanPaste"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanRedo - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanRedo"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanUndo - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanUndo"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Controls Controls - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "Controls", NetOffice.MSFormsApi.Controls.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmCycle Cycle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Cycle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Cycle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single InsideHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "InsideHeight"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single InsideWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "InsideWidth"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmScrollBars KeepScrollBarsVisible - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "KeepScrollBarsVisible"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "KeepScrollBarsVisible", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPictureAlignment PictureAlignment - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PictureAlignment"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PictureAlignment", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public stdole.Picture Picture - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "Picture", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "Picture", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPictureSizeMode PictureSizeMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PictureSizeMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PictureSizeMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool PictureTiling - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "PictureTiling"); - } - set - { - Factory.ExecuteValuePropertySet(this, "PictureTiling", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmScrollBars ScrollBars - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ScrollBars"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ScrollBars", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollHeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollHeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollLeft - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollLeft"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollLeft", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollTop - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollTop"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollTop", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollWidth"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollWidth", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Controls Selected - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "Selected", NetOffice.MSFormsApi.Controls.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmSpecialEffect SpecialEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SpecialEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SpecialEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmVerticalScrollBarSide VerticalScrollBarSide - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "VerticalScrollBarSide"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "VerticalScrollBarSide", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 Zoom - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "Zoom"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Zoom", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode DesignMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DesignMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "DesignMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode ShowToolbox - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ShowToolbox"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ShowToolbox", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode ShowGridDots - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ShowGridDots"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ShowGridDots", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode SnapToGrid - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SnapToGrid"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SnapToGrid", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single GridX - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "GridX"); - } - set - { - Factory.ExecuteValuePropertySet(this, "GridX", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single GridY - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "GridY"); - } - set - { - Factory.ExecuteValuePropertySet(this, "GridY", value); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 insideHeight - [SupportByVersion("MSForms", 2)] - public void _GetInsideHeight(out Int32 insideHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - insideHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(insideHeight); - Invoker.Method(this, "_GetInsideHeight", paramsArray, modifiers); - insideHeight = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 insideWidth - [SupportByVersion("MSForms", 2)] - public void _GetInsideWidth(out Int32 insideWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - insideWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(insideWidth); - Invoker.Method(this, "_GetInsideWidth", paramsArray, modifiers); - insideWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollHeight - [SupportByVersion("MSForms", 2)] - public void _SetScrollHeight(Int32 scrollHeight) - { - Factory.ExecuteMethod(this, "_SetScrollHeight", scrollHeight); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollHeight - [SupportByVersion("MSForms", 2)] - public void _GetScrollHeight(out Int32 scrollHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollHeight); - Invoker.Method(this, "_GetScrollHeight", paramsArray, modifiers); - scrollHeight = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollLeft - [SupportByVersion("MSForms", 2)] - public void _SetScrollLeft(Int32 scrollLeft) - { - Factory.ExecuteMethod(this, "_SetScrollLeft", scrollLeft); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollLeft - [SupportByVersion("MSForms", 2)] - public void _GetScrollLeft(out Int32 scrollLeft) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollLeft = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollLeft); - Invoker.Method(this, "_GetScrollLeft", paramsArray, modifiers); - scrollLeft = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollTop - [SupportByVersion("MSForms", 2)] - public void _SetScrollTop(Int32 scrollTop) - { - Factory.ExecuteMethod(this, "_SetScrollTop", scrollTop); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollTop - [SupportByVersion("MSForms", 2)] - public void _GetScrollTop(out Int32 scrollTop) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollTop = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollTop); - Invoker.Method(this, "_GetScrollTop", paramsArray, modifiers); - scrollTop = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollWidth - [SupportByVersion("MSForms", 2)] - public void _SetScrollWidth(Int32 scrollWidth) - { - Factory.ExecuteMethod(this, "_SetScrollWidth", scrollWidth); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollWidth - [SupportByVersion("MSForms", 2)] - public void _GetScrollWidth(out Int32 scrollWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollWidth); - Invoker.Method(this, "_GetScrollWidth", paramsArray, modifiers); - scrollWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Copy() - { - Factory.ExecuteMethod(this, "Copy"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Cut() - { - Factory.ExecuteMethod(this, "Cut"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Paste() - { - Factory.ExecuteMethod(this, "Paste"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void RedoAction() - { - Factory.ExecuteMethod(this, "RedoAction"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Repaint() - { - Factory.ExecuteMethod(this, "Repaint"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object xAction - /// optional object yAction - [SupportByVersion("MSForms", 2)] - public void Scroll(object xAction, object yAction) - { - Factory.ExecuteMethod(this, "Scroll", xAction, yAction); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Scroll() - { - Factory.ExecuteMethod(this, "Scroll"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object xAction - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Scroll(object xAction) - { - Factory.ExecuteMethod(this, "Scroll", xAction); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void SetDefaultTabOrder() - { - Factory.ExecuteMethod(this, "SetDefaultTabOrder"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void UndoAction() - { - Factory.ExecuteMethod(this, "UndoAction"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridX - [SupportByVersion("MSForms", 2)] - public void _SetGridX(Int32 gridX) - { - Factory.ExecuteMethod(this, "_SetGridX", gridX); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridX - [SupportByVersion("MSForms", 2)] - public void _GetGridX(out Int32 gridX) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - gridX = 0; - object[] paramsArray = Invoker.ValidateParamsArray(gridX); - Invoker.Method(this, "_GetGridX", paramsArray, modifiers); - gridX = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridY - [SupportByVersion("MSForms", 2)] - public void _SetGridY(Int32 gridY) - { - Factory.ExecuteMethod(this, "_SetGridY", gridY); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridY - [SupportByVersion("MSForms", 2)] - public void _GetGridY(out Int32 gridY) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - gridY = 0; - object[] paramsArray = Invoker.ValidateParamsArray(gridY); - Invoker.Method(this, "_GetGridY", paramsArray, modifiers); - gridY = (Int32)paramsArray[0]; - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IPage.cs b/Source/MSForms/DispatchInterfaces/IPage.cs deleted file mode 100644 index 72eb63f76c..0000000000 --- a/Source/MSForms/DispatchInterfaces/IPage.cs +++ /dev/null @@ -1,1013 +0,0 @@ -using System.Reflection; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IPage - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IPage : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IPage); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IPage(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IPage(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IPage(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IPage(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IPage(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IPage(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IPage() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IPage(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Controls Controls - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "Controls", NetOffice.MSFormsApi.Controls.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Controls Selected - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "Selected", NetOffice.MSFormsApi.Controls.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Control ActiveControl - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "ActiveControl", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanPaste - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanPaste"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanRedo - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanRedo"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool CanUndo - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "CanUndo"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmCycle Cycle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Cycle"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Cycle", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string ControlTipText - { - get - { - return Factory.ExecuteStringPropertyGet(this, "ControlTipText"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ControlTipText", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Index - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Index"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Index", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single InsideHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "InsideHeight"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single InsideWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "InsideWidth"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmScrollBars KeepScrollBarsVisible - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "KeepScrollBarsVisible"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "KeepScrollBarsVisible", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Name - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Name"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Name", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPictureAlignment PictureAlignment - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PictureAlignment"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PictureAlignment", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture Picture - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "Picture", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "Picture", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmPictureSizeMode PictureSizeMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "PictureSizeMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "PictureSizeMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool PictureTiling - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "PictureTiling"); - } - set - { - Factory.ExecuteValuePropertySet(this, "PictureTiling", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmScrollBars ScrollBars - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ScrollBars"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ScrollBars", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollHeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollHeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollLeft - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollLeft"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollLeft", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollTop - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollTop"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollTop", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single ScrollWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ScrollWidth"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ScrollWidth", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Tag - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Tag"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Tag", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTransitionEffect TransitionEffect - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TransitionEffect"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TransitionEffect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 TransitionPeriod - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "TransitionPeriod"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TransitionPeriod", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmVerticalScrollBarSide VerticalScrollBarSide - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "VerticalScrollBarSide"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "VerticalScrollBarSide", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Visible - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Visible"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Visible", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 Zoom - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "Zoom"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Zoom", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode DesignMode - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DesignMode"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "DesignMode", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode ShowToolbox - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ShowToolbox"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ShowToolbox", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode ShowGridDots - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "ShowGridDots"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "ShowGridDots", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmMode SnapToGrid - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "SnapToGrid"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "SnapToGrid", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single GridX - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "GridX"); - } - set - { - Factory.ExecuteValuePropertySet(this, "GridX", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Single GridY - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "GridY"); - } - set - { - Factory.ExecuteValuePropertySet(this, "GridY", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Accelerator - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Accelerator"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Accelerator", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// Unknown COM Proxy - /// - [SupportByVersion("MSForms", 2), ProxyResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public object Parent - { - get - { - return Factory.ExecuteReferencePropertyGet(this, "Parent"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 insideHeight - [SupportByVersion("MSForms", 2)] - public void _GetInsideHeight(out Int32 insideHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - insideHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(insideHeight); - Invoker.Method(this, "_GetInsideHeight", paramsArray, modifiers); - insideHeight = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 insideWidth - [SupportByVersion("MSForms", 2)] - public void _GetInsideWidth(out Int32 insideWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - insideWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(insideWidth); - Invoker.Method(this, "_GetInsideWidth", paramsArray, modifiers); - insideWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollHeight - [SupportByVersion("MSForms", 2)] - public void _SetScrollHeight(Int32 scrollHeight) - { - Factory.ExecuteMethod(this, "_SetScrollHeight", scrollHeight); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollHeight - [SupportByVersion("MSForms", 2)] - public void _GetScrollHeight(out Int32 scrollHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollHeight); - Invoker.Method(this, "_GetScrollHeight", paramsArray, modifiers); - scrollHeight = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollLeft - [SupportByVersion("MSForms", 2)] - public void _SetScrollLeft(Int32 scrollLeft) - { - Factory.ExecuteMethod(this, "_SetScrollLeft", scrollLeft); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollLeft - [SupportByVersion("MSForms", 2)] - public void _GetScrollLeft(out Int32 scrollLeft) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollLeft = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollLeft); - Invoker.Method(this, "_GetScrollLeft", paramsArray, modifiers); - scrollLeft = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollTop - [SupportByVersion("MSForms", 2)] - public void _SetScrollTop(Int32 scrollTop) - { - Factory.ExecuteMethod(this, "_SetScrollTop", scrollTop); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollTop - [SupportByVersion("MSForms", 2)] - public void _GetScrollTop(out Int32 scrollTop) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollTop = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollTop); - Invoker.Method(this, "_GetScrollTop", paramsArray, modifiers); - scrollTop = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollWidth - [SupportByVersion("MSForms", 2)] - public void _SetScrollWidth(Int32 scrollWidth) - { - Factory.ExecuteMethod(this, "_SetScrollWidth", scrollWidth); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 scrollWidth - [SupportByVersion("MSForms", 2)] - public void _GetScrollWidth(out Int32 scrollWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - scrollWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(scrollWidth); - Invoker.Method(this, "_GetScrollWidth", paramsArray, modifiers); - scrollWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridX - [SupportByVersion("MSForms", 2)] - public void _SetGridX(Int32 gridX) - { - Factory.ExecuteMethod(this, "_SetGridX", gridX); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridX - [SupportByVersion("MSForms", 2)] - public void _GetGridX(out Int32 gridX) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - gridX = 0; - object[] paramsArray = Invoker.ValidateParamsArray(gridX); - Invoker.Method(this, "_GetGridX", paramsArray, modifiers); - gridX = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridY - [SupportByVersion("MSForms", 2)] - public void _SetGridY(Int32 gridY) - { - Factory.ExecuteMethod(this, "_SetGridY", gridY); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 gridY - [SupportByVersion("MSForms", 2)] - public void _GetGridY(out Int32 gridY) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - gridY = 0; - object[] paramsArray = Invoker.ValidateParamsArray(gridY); - Invoker.Method(this, "_GetGridY", paramsArray, modifiers); - gridY = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Copy() - { - Factory.ExecuteMethod(this, "Copy"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Cut() - { - Factory.ExecuteMethod(this, "Cut"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Paste() - { - Factory.ExecuteMethod(this, "Paste"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void RedoAction() - { - Factory.ExecuteMethod(this, "RedoAction"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Repaint() - { - Factory.ExecuteMethod(this, "Repaint"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object xAction - /// optional object yAction - [SupportByVersion("MSForms", 2)] - public void Scroll(object xAction, object yAction) - { - Factory.ExecuteMethod(this, "Scroll", xAction, yAction); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Scroll() - { - Factory.ExecuteMethod(this, "Scroll"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object xAction - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public void Scroll(object xAction) - { - Factory.ExecuteMethod(this, "Scroll", xAction); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void SetDefaultTabOrder() - { - Factory.ExecuteMethod(this, "SetDefaultTabOrder"); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void UndoAction() - { - Factory.ExecuteMethod(this, "UndoAction"); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IReturnBoolean.cs b/Source/MSForms/DispatchInterfaces/IReturnBoolean.cs deleted file mode 100644 index c840917611..0000000000 --- a/Source/MSForms/DispatchInterfaces/IReturnBoolean.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IReturnBoolean - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IReturnBoolean : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IReturnBoolean); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IReturnBoolean(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IReturnBoolean(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnBoolean(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnBoolean(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnBoolean(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnBoolean(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnBoolean() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnBoolean(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Value - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IReturnEffect.cs b/Source/MSForms/DispatchInterfaces/IReturnEffect.cs deleted file mode 100644 index d0de8fd2f7..0000000000 --- a/Source/MSForms/DispatchInterfaces/IReturnEffect.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IReturnEffect - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IReturnEffect : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IReturnEffect); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IReturnEffect(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IReturnEffect(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnEffect(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnEffect(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnEffect(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnEffect(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnEffect() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnEffect(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmDropEffect Value - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Value", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IReturnInteger.cs b/Source/MSForms/DispatchInterfaces/IReturnInteger.cs deleted file mode 100644 index 6c30eed6cd..0000000000 --- a/Source/MSForms/DispatchInterfaces/IReturnInteger.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IReturnInteger - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IReturnInteger : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IReturnInteger); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IReturnInteger(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IReturnInteger(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnInteger(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnInteger(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnInteger(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnInteger(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnInteger() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnInteger(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Value - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IReturnSingle.cs b/Source/MSForms/DispatchInterfaces/IReturnSingle.cs deleted file mode 100644 index aa539cd392..0000000000 --- a/Source/MSForms/DispatchInterfaces/IReturnSingle.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IReturnSingle - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IReturnSingle : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IReturnSingle); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IReturnSingle(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IReturnSingle(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnSingle(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnSingle(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnSingle(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnSingle(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnSingle() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnSingle(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single Value - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IReturnString.cs b/Source/MSForms/DispatchInterfaces/IReturnString.cs deleted file mode 100644 index a99c0cc710..0000000000 --- a/Source/MSForms/DispatchInterfaces/IReturnString.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IReturnString - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IReturnString : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IReturnString); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IReturnString(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IReturnString(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnString(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnString(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnString(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnString(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnString() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IReturnString(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IScrollbar.cs b/Source/MSForms/DispatchInterfaces/IScrollbar.cs deleted file mode 100644 index f07d2d36a3..0000000000 --- a/Source/MSForms/DispatchInterfaces/IScrollbar.cs +++ /dev/null @@ -1,342 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IScrollbar - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IScrollbar : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IScrollbar); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IScrollbar(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IScrollbar(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IScrollbar(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IScrollbar(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IScrollbar(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IScrollbar(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IScrollbar() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IScrollbar(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Value - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Min - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Min"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Min", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Max - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Max"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Max", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 SmallChange - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "SmallChange"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SmallChange", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 LargeChange - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "LargeChange"); - } - set - { - Factory.ExecuteValuePropertySet(this, "LargeChange", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool ProportionalThumb - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "ProportionalThumb"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ProportionalThumb", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmOrientation Orientation - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Orientation"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Orientation", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Delay - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Delay"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Delay", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/ISpinbutton.cs b/Source/MSForms/DispatchInterfaces/ISpinbutton.cs deleted file mode 100644 index 869df51a91..0000000000 --- a/Source/MSForms/DispatchInterfaces/ISpinbutton.cs +++ /dev/null @@ -1,308 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface ISpinbutton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class ISpinbutton : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ISpinbutton); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public ISpinbutton(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ISpinbutton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ISpinbutton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ISpinbutton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ISpinbutton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ISpinbutton(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ISpinbutton() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ISpinbutton(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Value - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Min - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Min"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Min", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Max - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Max"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Max", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 SmallChange - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "SmallChange"); - } - set - { - Factory.ExecuteValuePropertySet(this, "SmallChange", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmOrientation Orientation - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Orientation"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Orientation", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Delay - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Delay"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Delay", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/ITabStrip.cs b/Source/MSForms/DispatchInterfaces/ITabStrip.cs deleted file mode 100644 index 60f0b33ad5..0000000000 --- a/Source/MSForms/DispatchInterfaces/ITabStrip.cs +++ /dev/null @@ -1,655 +0,0 @@ -using System.Reflection; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface ITabStrip - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class ITabStrip : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(ITabStrip); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public ITabStrip(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public ITabStrip(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ITabStrip(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ITabStrip(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ITabStrip(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ITabStrip(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ITabStrip() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public ITabStrip(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 BackColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "BackColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "BackColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 ForeColor - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "ForeColor"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ForeColor", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Font _Font_Reserved - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "_Font_Reserved"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "_Font_Reserved", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [BaseResult] - public NetOffice.MSFormsApi.Font Font - { - get - { - return Factory.ExecuteBaseReferencePropertyGet(this, "Font"); - } - set - { - Factory.ExecuteReferencePropertySet(this, "Font", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string FontName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "FontName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontBold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontBold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontBold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontItalic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontItalic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontItalic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontUnderline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontUnderline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontUnderline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public bool FontStrikethru - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "FontStrikethru"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontStrikethru", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public float FontSize - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "FontSize"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontSize", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2), NativeResult] - public stdole.Picture MouseIcon - { - get - { - object[] paramsArray = null; - object returnItem = Invoker.PropertyGet(this, "MouseIcon", paramsArray); - return returnItem as stdole.Picture; - } - set - { - object[] paramsArray = Invoker.ValidateParamsArray(value); - Invoker.PropertySet(this, "MouseIcon", paramsArray); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmMousePointer MousePointer - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "MousePointer"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "MousePointer", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool MultiRow - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "MultiRow"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MultiRow", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTabStyle Style - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "Style"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "Style", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Enums.fmTabOrientation TabOrientation - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "TabOrientation"); - } - set - { - Factory.ExecuteEnumPropertySet(this, "TabOrientation", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single ClientTop - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ClientTop"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single ClientLeft - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ClientLeft"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single ClientWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ClientWidth"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Single ClientHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "ClientHeight"); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tabs Tabs - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "Tabs", NetOffice.MSFormsApi.Tabs.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Tab SelectedItem - { - get - { - return Factory.ExecuteKnownReferencePropertyGet(this, "SelectedItem", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Value - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single TabFixedWidth - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "TabFixedWidth"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabFixedWidth", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Single TabFixedHeight - { - get - { - return Factory.ExecuteSinglePropertyGet(this, "TabFixedHeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "TabFixedHeight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int16 FontWeight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "FontWeight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "FontWeight", value); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 tabFixedWidth - [SupportByVersion("MSForms", 2)] - public void _SetTabFixedWidth(Int32 tabFixedWidth) - { - Factory.ExecuteMethod(this, "_SetTabFixedWidth", tabFixedWidth); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 tabFixedWidth - [SupportByVersion("MSForms", 2)] - public void _GetTabFixedWidth(out Int32 tabFixedWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - tabFixedWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(tabFixedWidth); - Invoker.Method(this, "_GetTabFixedWidth", paramsArray, modifiers); - tabFixedWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 tabFixedHeight - [SupportByVersion("MSForms", 2)] - public void _SetTabFixedHeight(Int32 tabFixedHeight) - { - Factory.ExecuteMethod(this, "_SetTabFixedHeight", tabFixedHeight); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 tabFixedHeight - [SupportByVersion("MSForms", 2)] - public void _GetTabFixedHeight(out Int32 tabFixedHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - tabFixedHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(tabFixedHeight); - Invoker.Method(this, "_GetTabFixedHeight", paramsArray, modifiers); - tabFixedHeight = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clientTop - [SupportByVersion("MSForms", 2)] - public void _GetClientTop(out Int32 clientTop) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - clientTop = 0; - object[] paramsArray = Invoker.ValidateParamsArray(clientTop); - Invoker.Method(this, "_GetClientTop", paramsArray, modifiers); - clientTop = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clientLeft - [SupportByVersion("MSForms", 2)] - public void _GetClientLeft(out Int32 clientLeft) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - clientLeft = 0; - object[] paramsArray = Invoker.ValidateParamsArray(clientLeft); - Invoker.Method(this, "_GetClientLeft", paramsArray, modifiers); - clientLeft = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clientWidth - [SupportByVersion("MSForms", 2)] - public void _GetClientWidth(out Int32 clientWidth) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - clientWidth = 0; - object[] paramsArray = Invoker.ValidateParamsArray(clientWidth); - Invoker.Method(this, "_GetClientWidth", paramsArray, modifiers); - clientWidth = (Int32)paramsArray[0]; - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clientHeight - [SupportByVersion("MSForms", 2)] - public void _GetClientHeight(out Int32 clientHeight) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - clientHeight = 0; - object[] paramsArray = Invoker.ValidateParamsArray(clientHeight); - Invoker.Method(this, "_GetClientHeight", paramsArray, modifiers); - clientHeight = (Int32)paramsArray[0]; - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLCheckbox.cs b/Source/MSForms/DispatchInterfaces/IWHTMLCheckbox.cs deleted file mode 100644 index a27ee748b6..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLCheckbox.cs +++ /dev/null @@ -1,187 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLCheckbox - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLCheckbox : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLCheckbox); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLCheckbox(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLCheckbox(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLCheckbox(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLCheckbox(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLCheckbox(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLCheckbox(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLCheckbox() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLCheckbox(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Checked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Checked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Checked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLHidden.cs b/Source/MSForms/DispatchInterfaces/IWHTMLHidden.cs deleted file mode 100644 index 06038e2ea8..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLHidden.cs +++ /dev/null @@ -1,170 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLHidden - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLHidden : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLHidden); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLHidden(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLHidden(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLHidden(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLHidden(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLHidden(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLHidden(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLHidden() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLHidden(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLImage.cs b/Source/MSForms/DispatchInterfaces/IWHTMLImage.cs deleted file mode 100644 index 318fd9eaaa..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLImage.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLImage - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLImage : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLImage); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLImage(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLImage(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLImage(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLImage(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLImage(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLImage(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLImage() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLImage(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Action - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Action"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Action", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Source - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Source"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Source", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Encoding - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Encoding"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Encoding", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Method - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Method"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Method", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLOption.cs b/Source/MSForms/DispatchInterfaces/IWHTMLOption.cs deleted file mode 100644 index aa916a75d3..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLOption.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLOption - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLOption : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLOption); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLOption(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLOption(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLOption(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLOption(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLOption(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLOption(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLOption() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLOption(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Checked - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Checked"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Checked", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public NetOffice.MSFormsApi.Enums.fmDisplayStyle DisplayStyle - { - get - { - return Factory.ExecuteEnumPropertyGet(this, "DisplayStyle"); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLPassword.cs b/Source/MSForms/DispatchInterfaces/IWHTMLPassword.cs deleted file mode 100644 index f77113420c..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLPassword.cs +++ /dev/null @@ -1,204 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLPassword - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLPassword : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLPassword); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLPassword(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLPassword(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLPassword(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLPassword(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLPassword(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLPassword(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLPassword() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLPassword(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 MaxLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "MaxLength"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MaxLength", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Width - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Width"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Width", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLReset.cs b/Source/MSForms/DispatchInterfaces/IWHTMLReset.cs deleted file mode 100644 index 1f3a247696..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLReset.cs +++ /dev/null @@ -1,170 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLReset - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLReset : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLReset); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLReset(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLReset(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLReset(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLReset(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLReset(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLReset(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLReset() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLReset(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLSelect.cs b/Source/MSForms/DispatchInterfaces/IWHTMLSelect.cs deleted file mode 100644 index 2d6415e638..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLSelect.cs +++ /dev/null @@ -1,220 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLSelect - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLSelect : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLSelect); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLSelect(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLSelect(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSelect(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSelect(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSelect(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSelect(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSelect() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSelect(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object Values - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "Values"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "Values", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public object DisplayValues - { - get - { - return Factory.ExecuteVariantPropertyGet(this, "DisplayValues"); - } - set - { - Factory.ExecuteVariantPropertySet(this, "DisplayValues", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Selected - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Selected"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Selected", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool MultiSelect - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "MultiSelect"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MultiSelect", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Size - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Size"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Size", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLSubmitButton.cs b/Source/MSForms/DispatchInterfaces/IWHTMLSubmitButton.cs deleted file mode 100644 index 20a6bfd40e..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLSubmitButton.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLSubmitButton - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLSubmitButton : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLSubmitButton); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLSubmitButton(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLSubmitButton(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSubmitButton(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSubmitButton(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSubmitButton(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSubmitButton(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSubmitButton() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLSubmitButton(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Action - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Action"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Action", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Encoding - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Encoding"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Encoding", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Method - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Method"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Method", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLText.cs b/Source/MSForms/DispatchInterfaces/IWHTMLText.cs deleted file mode 100644 index 00ed0a40e4..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLText.cs +++ /dev/null @@ -1,204 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLText - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLText : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLText); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLText(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLText(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLText(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLText(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLText(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLText(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLText() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLText(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 MaxLength - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "MaxLength"); - } - set - { - Factory.ExecuteValuePropertySet(this, "MaxLength", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Width - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Width"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Width", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public string HTMLType - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLType"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLType", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/IWHTMLTextArea.cs b/Source/MSForms/DispatchInterfaces/IWHTMLTextArea.cs deleted file mode 100644 index d7de7d3b69..0000000000 --- a/Source/MSForms/DispatchInterfaces/IWHTMLTextArea.cs +++ /dev/null @@ -1,203 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface IWHTMLTextArea - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class IWHTMLTextArea : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IWHTMLTextArea); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IWHTMLTextArea(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IWHTMLTextArea(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLTextArea(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLTextArea(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLTextArea(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLTextArea(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLTextArea() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IWHTMLTextArea(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string HTMLName - { - get - { - return Factory.ExecuteStringPropertyGet(this, "HTMLName"); - } - set - { - Factory.ExecuteValuePropertySet(this, "HTMLName", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Value - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Value"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Value", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Rows - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Rows"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Rows", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Columns - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Columns"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Columns", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string WordWrap - { - get - { - return Factory.ExecuteStringPropertyGet(this, "WordWrap"); - } - set - { - Factory.ExecuteValuePropertySet(this, "WordWrap", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/Pages.cs b/Source/MSForms/DispatchInterfaces/Pages.cs deleted file mode 100644 index 27865b9bdd..0000000000 --- a/Source/MSForms/DispatchInterfaces/Pages.cs +++ /dev/null @@ -1,309 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; -using NetOffice.CollectionsGeneric; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface Pages - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), Enumerator(Enumerator.Reference, EnumeratorInvoke.Property), HasIndexProperty(IndexInvoke.Method, "Item")] - public class Pages : COMObject, NetOffice.CollectionsGeneric.IEnumerableProvider - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Pages); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public Pages(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Pages(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Pages(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Pages(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Pages(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Pages(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Pages() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Pages(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 Count - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Count"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// object varg - [SupportByVersion("MSForms", 2)] - [NetRuntimeSystem.Runtime.CompilerServices.IndexerName("Item"), IndexProperty] - public object this[object varg] - { - get - { - return Factory.ExecuteVariantMethodGet(this, "Item", varg); - } - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public object Enum() - { - return Factory.ExecuteVariantMethodGet(this, "Enum"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object bstrName - /// optional object bstrCaption - /// optional object lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Page Add(object bstrName, object bstrCaption, object lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType, bstrName, bstrCaption, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Page Add() - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object bstrName - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Page Add(object bstrName) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType, bstrName); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object bstrName - /// optional object bstrCaption - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Page Add(object bstrName, object bstrCaption) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType, bstrName, bstrCaption); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clsid - /// string bstrName - /// string bstrCaption - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Page _AddCtrl(Int32 clsid, string bstrName, string bstrCaption) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_AddCtrl", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType, clsid, bstrName, bstrCaption); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 clsid - /// string bstrName - /// string bstrCaption - /// Int32 lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Page _InsertCtrl(Int32 clsid, string bstrName, string bstrCaption, Int32 lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_InsertCtrl", NetOffice.MSFormsApi.Page.LateBindingApiWrapperType, clsid, bstrName, bstrCaption, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control _GetItemByIndex(Int32 lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByIndex", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string pstrName - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Control _GetItemByName(string pstrName) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByName", NetOffice.MSFormsApi.Control.LateBindingApiWrapperType, pstrName); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object varg - [SupportByVersion("MSForms", 2)] - public void Remove(object varg) - { - Factory.ExecuteMethod(this, "Remove", varg); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Clear() - { - Factory.ExecuteMethod(this, "Clear"); - } - - #endregion - - #region IEnumerableProvider - - ICOMObject IEnumerableProvider.GetComObjectEnumerator(ICOMObject parent) - { - return NetOffice.Utils.GetComObjectEnumeratorAsProperty(parent, this, false); - } - - IEnumerable IEnumerableProvider.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator) - { - return NetOffice.Utils.FetchVariantComObjectEnumerator(parent, enumerator, true); - } - - #endregion - - #region IEnumerable - - /// - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - public IEnumerator GetEnumerator() - { - NetRuntimeSystem.Collections.IEnumerable innerEnumerator = (this as NetRuntimeSystem.Collections.IEnumerable); - foreach (object item in innerEnumerator) - yield return item; - } - - #endregion - - #region IEnumerable - - /// - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator() - { - return NetOffice.Utils.GetProxyEnumeratorAsProperty(this, true); - } - - #endregion - - #pragma warning restore - } -} \ No newline at end of file diff --git a/Source/MSForms/DispatchInterfaces/Tab.cs b/Source/MSForms/DispatchInterfaces/Tab.cs deleted file mode 100644 index 93831058d6..0000000000 --- a/Source/MSForms/DispatchInterfaces/Tab.cs +++ /dev/null @@ -1,254 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface Tab - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface)] - public class Tab : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Tab); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public Tab(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Tab(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tab(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tab(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tab(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tab(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tab() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tab(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Caption - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Caption"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Caption", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string ControlTipText - { - get - { - return Factory.ExecuteStringPropertyGet(this, "ControlTipText"); - } - set - { - Factory.ExecuteValuePropertySet(this, "ControlTipText", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Enabled - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Enabled"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Enabled", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 Index - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Index"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Index", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Name - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Name"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Name", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Tag - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Tag"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Tag", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Visible - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Visible"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Visible", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Accelerator - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Accelerator"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Accelerator", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/DispatchInterfaces/Tabs.cs b/Source/MSForms/DispatchInterfaces/Tabs.cs deleted file mode 100644 index 6ba5495db6..0000000000 --- a/Source/MSForms/DispatchInterfaces/Tabs.cs +++ /dev/null @@ -1,307 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; -using NetOffice.CollectionsGeneric; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface Tabs - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), Enumerator(Enumerator.Reference, EnumeratorInvoke.Property), HasIndexProperty(IndexInvoke.Method, "Item")] - public class Tabs : COMObject, NetOffice.CollectionsGeneric.IEnumerableProvider - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(Tabs); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public Tabs(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public Tabs(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tabs(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tabs(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tabs(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tabs(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tabs() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Tabs(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public Int32 Count - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "Count"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab _GetItemByIndex(Int32 lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByIndex", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string bstr - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab _GetItemByName(string bstr) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_GetItemByName", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, bstr); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object varg - [SupportByVersion("MSForms", 2)] - [NetRuntimeSystem.Runtime.CompilerServices.IndexerName("Item"), IndexProperty] - public object this[object varg] - { - get - { - return Factory.ExecuteVariantMethodGet(this, "Item", varg); - } - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public object Enum() - { - return Factory.ExecuteVariantMethodGet(this, "Enum"); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object bstrName - /// optional object bstrCaption - /// optional object lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab Add(object bstrName, object bstrCaption, object lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, bstrName, bstrCaption, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab Add() - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object bstrName - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab Add(object bstrName) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, bstrName); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// optional object bstrName - /// optional object bstrCaption - [CustomMethod] - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab Add(object bstrName, object bstrCaption) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "Add", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, bstrName, bstrCaption); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string bstrName - /// string bstrCaption - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab _Add(string bstrName, string bstrCaption) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_Add", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, bstrName, bstrCaption); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// string bstrName - /// string bstrCaption - /// Int32 lIndex - [SupportByVersion("MSForms", 2)] - public NetOffice.MSFormsApi.Tab _Insert(string bstrName, string bstrCaption, Int32 lIndex) - { - return Factory.ExecuteKnownReferenceMethodGet(this, "_Insert", NetOffice.MSFormsApi.Tab.LateBindingApiWrapperType, bstrName, bstrCaption, lIndex); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// object varg - [SupportByVersion("MSForms", 2)] - public void Remove(object varg) - { - Factory.ExecuteMethod(this, "Remove", varg); - } - - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - public void Clear() - { - Factory.ExecuteMethod(this, "Clear"); - } - - #endregion - - #region IEnumerableProvider - - ICOMObject IEnumerableProvider.GetComObjectEnumerator(ICOMObject parent) - { - return NetOffice.Utils.GetComObjectEnumeratorAsProperty(parent, this, false); - } - - IEnumerable IEnumerableProvider.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator) - { - return NetOffice.Utils.FetchVariantComObjectEnumerator(parent, enumerator, true); - } - - #endregion - - #region IEnumerable - - /// - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - public IEnumerator GetEnumerator() - { - NetRuntimeSystem.Collections.IEnumerable innerEnumerator = (this as NetRuntimeSystem.Collections.IEnumerable); - foreach (object item in innerEnumerator) - yield return item; - } - - #endregion - - #region IEnumerable - - /// - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator() - { - return NetOffice.Utils.GetProxyEnumeratorAsProperty(this, true); - } - - #endregion - - #pragma warning restore - } -} \ No newline at end of file diff --git a/Source/MSForms/DispatchInterfaces/_UserForm.cs b/Source/MSForms/DispatchInterfaces/_UserForm.cs deleted file mode 100644 index a00d34d25f..0000000000 --- a/Source/MSForms/DispatchInterfaces/_UserForm.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// DispatchInterface _UserForm - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsDispatchInterface), BaseType] - public class _UserForm : IOptionFrame - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(_UserForm); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public _UserForm(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public _UserForm(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public _UserForm(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public _UserForm(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public _UserForm(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public _UserForm(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public _UserForm() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public _UserForm(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int32 DrawBuffer - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "DrawBuffer"); - } - set - { - Factory.ExecuteValuePropertySet(this, "DrawBuffer", value); - } - } - - #endregion - - #region Methods - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/Enums/fmAction.cs b/Source/MSForms/Enums/fmAction.cs deleted file mode 100644 index 80e7789471..0000000000 --- a/Source/MSForms/Enums/fmAction.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmAction - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmActionCut = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmActionCopy = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmActionPaste = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmActionDragDrop = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmAlignment.cs b/Source/MSForms/Enums/fmAlignment.cs deleted file mode 100644 index 642b7a4e31..0000000000 --- a/Source/MSForms/Enums/fmAlignment.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmAlignment - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmAlignmentLeft = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmAlignmentRight = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmBackStyle.cs b/Source/MSForms/Enums/fmBackStyle.cs deleted file mode 100644 index 503dc7dcbb..0000000000 --- a/Source/MSForms/Enums/fmBackStyle.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmBackStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmBackStyleTransparent = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmBackStyleOpaque = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmBorderStyle.cs b/Source/MSForms/Enums/fmBorderStyle.cs deleted file mode 100644 index 2161791dc5..0000000000 --- a/Source/MSForms/Enums/fmBorderStyle.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmBorderStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmBorderStyleNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmBorderStyleSingle = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmBorders.cs b/Source/MSForms/Enums/fmBorders.cs deleted file mode 100644 index 33ebbb9ed1..0000000000 --- a/Source/MSForms/Enums/fmBorders.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmBorders - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmBordersNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmBordersBox = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmBordersLeft = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmBordersTop = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmButtonEffect.cs b/Source/MSForms/Enums/fmButtonEffect.cs deleted file mode 100644 index 5755f23c13..0000000000 --- a/Source/MSForms/Enums/fmButtonEffect.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmButtonEffect - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmButtonEffectFlat = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmButtonEffectSunken = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmButtonStyle.cs b/Source/MSForms/Enums/fmButtonStyle.cs deleted file mode 100644 index 6573431e50..0000000000 --- a/Source/MSForms/Enums/fmButtonStyle.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmButtonStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmButtonStylePushButton = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmButtonStyleToggleButton = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmCycle.cs b/Source/MSForms/Enums/fmCycle.cs deleted file mode 100644 index dde38873af..0000000000 --- a/Source/MSForms/Enums/fmCycle.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmCycle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmCycleAllForms = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmCycleCurrentForm = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmDisplayStyle.cs b/Source/MSForms/Enums/fmDisplayStyle.cs deleted file mode 100644 index 362efc30f1..0000000000 --- a/Source/MSForms/Enums/fmDisplayStyle.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmDisplayStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleText = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleList = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleCombo = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleCheckBox = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleOptionButton = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleToggle = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmDisplayStyleDropList = 7 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmDragBehavior.cs b/Source/MSForms/Enums/fmDragBehavior.cs deleted file mode 100644 index 1eadf007b5..0000000000 --- a/Source/MSForms/Enums/fmDragBehavior.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmDragBehavior - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmDragBehaviorDisabled = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmDragBehaviorEnabled = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmDragState.cs b/Source/MSForms/Enums/fmDragState.cs deleted file mode 100644 index ec08717632..0000000000 --- a/Source/MSForms/Enums/fmDragState.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmDragState - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmDragStateEnter = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmDragStateLeave = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmDragStateOver = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmDropButtonStyle.cs b/Source/MSForms/Enums/fmDropButtonStyle.cs deleted file mode 100644 index 315e03c9c5..0000000000 --- a/Source/MSForms/Enums/fmDropButtonStyle.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmDropButtonStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmDropButtonStylePlain = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmDropButtonStyleArrow = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmDropButtonStyleEllipsis = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmDropButtonStyleReduce = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmDropEffect.cs b/Source/MSForms/Enums/fmDropEffect.cs deleted file mode 100644 index eb4354921a..0000000000 --- a/Source/MSForms/Enums/fmDropEffect.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmDropEffect - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmDropEffectNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmDropEffectCopy = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmDropEffectMove = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmDropEffectCopyOrMove = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmEnAutoSize.cs b/Source/MSForms/Enums/fmEnAutoSize.cs deleted file mode 100644 index c32eeb185f..0000000000 --- a/Source/MSForms/Enums/fmEnAutoSize.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmEnAutoSize - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - _fmEnAutoSizeNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - _fmEnAutoSizeHorizontal = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - _fmEnAutoSizeVertical = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - _fmEnAutoSizeBoth = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmEnterFieldBehavior.cs b/Source/MSForms/Enums/fmEnterFieldBehavior.cs deleted file mode 100644 index bb95e55031..0000000000 --- a/Source/MSForms/Enums/fmEnterFieldBehavior.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmEnterFieldBehavior - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmEnterFieldBehaviorSelectAll = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmEnterFieldBehaviorRecallSelection = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmIMEMode.cs b/Source/MSForms/Enums/fmIMEMode.cs deleted file mode 100644 index 33a1c085dc..0000000000 --- a/Source/MSForms/Enums/fmIMEMode.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmIMEMode - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmIMEModeNoControl = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmIMEModeOn = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmIMEModeOff = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmIMEModeDisable = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmIMEModeHiragana = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmIMEModeKatakana = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmIMEModeKatakanaHalf = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmIMEModeAlphaFull = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmIMEModeAlpha = 8, - - /// - /// SupportByVersion MSForms 2 - /// - /// 9 - [SupportByVersion("MSForms", 2)] - fmIMEModeHangulFull = 9, - - /// - /// SupportByVersion MSForms 2 - /// - /// 10 - [SupportByVersion("MSForms", 2)] - fmIMEModeHangul = 10, - - /// - /// SupportByVersion MSForms 2 - /// - /// 11 - [SupportByVersion("MSForms", 2)] - fmIMEModeHanziFull = 11, - - /// - /// SupportByVersion MSForms 2 - /// - /// 12 - [SupportByVersion("MSForms", 2)] - fmIMEModeHanzi = 12 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmLayoutEffect.cs b/Source/MSForms/Enums/fmLayoutEffect.cs deleted file mode 100644 index a7d450962d..0000000000 --- a/Source/MSForms/Enums/fmLayoutEffect.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmLayoutEffect - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmLayoutEffectNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmLayoutEffectInitiate = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - _fmLayoutEffectRespond = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmListBoxStyles.cs b/Source/MSForms/Enums/fmListBoxStyles.cs deleted file mode 100644 index e4ee522669..0000000000 --- a/Source/MSForms/Enums/fmListBoxStyles.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmListBoxStyles - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - _fmListBoxStylesNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - _fmListBoxStylesListBox = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - _fmListBoxStylesComboBox = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmListStyle.cs b/Source/MSForms/Enums/fmListStyle.cs deleted file mode 100644 index 36ec6643b7..0000000000 --- a/Source/MSForms/Enums/fmListStyle.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmListStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmListStylePlain = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmListStyleOption = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmMatchEntry.cs b/Source/MSForms/Enums/fmMatchEntry.cs deleted file mode 100644 index 7c3a0298f1..0000000000 --- a/Source/MSForms/Enums/fmMatchEntry.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmMatchEntry - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmMatchEntryFirstLetter = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmMatchEntryComplete = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmMatchEntryNone = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmMode.cs b/Source/MSForms/Enums/fmMode.cs deleted file mode 100644 index 62f1bcd7d2..0000000000 --- a/Source/MSForms/Enums/fmMode.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmMode - { - /// - /// SupportByVersion MSForms 2 - /// - /// -2 - [SupportByVersion("MSForms", 2)] - fmModeInherit = -2, - - /// - /// SupportByVersion MSForms 2 - /// - /// -1 - [SupportByVersion("MSForms", 2)] - fmModeOn = -1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmModeOff = 0 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmMousePointer.cs b/Source/MSForms/Enums/fmMousePointer.cs deleted file mode 100644 index f843518f7e..0000000000 --- a/Source/MSForms/Enums/fmMousePointer.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmMousePointer - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmMousePointerDefault = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmMousePointerArrow = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmMousePointerCross = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmMousePointerIBeam = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmMousePointerSizeNESW = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmMousePointerSizeNS = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmMousePointerSizeNWSE = 8, - - /// - /// SupportByVersion MSForms 2 - /// - /// 9 - [SupportByVersion("MSForms", 2)] - fmMousePointerSizeWE = 9, - - /// - /// SupportByVersion MSForms 2 - /// - /// 10 - [SupportByVersion("MSForms", 2)] - fmMousePointerUpArrow = 10, - - /// - /// SupportByVersion MSForms 2 - /// - /// 11 - [SupportByVersion("MSForms", 2)] - fmMousePointerHourGlass = 11, - - /// - /// SupportByVersion MSForms 2 - /// - /// 12 - [SupportByVersion("MSForms", 2)] - fmMousePointerNoDrop = 12, - - /// - /// SupportByVersion MSForms 2 - /// - /// 13 - [SupportByVersion("MSForms", 2)] - fmMousePointerAppStarting = 13, - - /// - /// SupportByVersion MSForms 2 - /// - /// 14 - [SupportByVersion("MSForms", 2)] - fmMousePointerHelp = 14, - - /// - /// SupportByVersion MSForms 2 - /// - /// 15 - [SupportByVersion("MSForms", 2)] - fmMousePointerSizeAll = 15, - - /// - /// SupportByVersion MSForms 2 - /// - /// 99 - [SupportByVersion("MSForms", 2)] - fmMousePointerCustom = 99 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmMultiSelect.cs b/Source/MSForms/Enums/fmMultiSelect.cs deleted file mode 100644 index 37bf145407..0000000000 --- a/Source/MSForms/Enums/fmMultiSelect.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmMultiSelect - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmMultiSelectSingle = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmMultiSelectMulti = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmMultiSelectExtended = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmOrientation.cs b/Source/MSForms/Enums/fmOrientation.cs deleted file mode 100644 index 75994c99af..0000000000 --- a/Source/MSForms/Enums/fmOrientation.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmOrientation - { - /// - /// SupportByVersion MSForms 2 - /// - /// -1 - [SupportByVersion("MSForms", 2)] - fmOrientationAuto = -1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmOrientationVertical = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmOrientationHorizontal = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmPicPosition.cs b/Source/MSForms/Enums/fmPicPosition.cs deleted file mode 100644 index 2865adf060..0000000000 --- a/Source/MSForms/Enums/fmPicPosition.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmPicPosition - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmPicPositionCenter = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmPicPositionTopLeft = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmPicPositionTopCenter = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmPicPositionTopRight = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmPicPositionCenterLeft = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmPicPositionCenterRight = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmPicPositionBottomLeft = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmPicPositionBottomCenter = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmPicPositionBottomRight = 8 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmPictureAlignment.cs b/Source/MSForms/Enums/fmPictureAlignment.cs deleted file mode 100644 index 4c5e4affd9..0000000000 --- a/Source/MSForms/Enums/fmPictureAlignment.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmPictureAlignment - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmPictureAlignmentTopLeft = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmPictureAlignmentTopRight = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmPictureAlignmentCenter = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmPictureAlignmentBottomLeft = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmPictureAlignmentBottomRight = 4 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmPicturePosition.cs b/Source/MSForms/Enums/fmPicturePosition.cs deleted file mode 100644 index 95ea06094f..0000000000 --- a/Source/MSForms/Enums/fmPicturePosition.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmPicturePosition - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmPicturePositionLeftTop = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmPicturePositionLeftCenter = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmPicturePositionLeftBottom = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmPicturePositionRightTop = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmPicturePositionRightCenter = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmPicturePositionRightBottom = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmPicturePositionAboveLeft = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmPicturePositionAboveCenter = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmPicturePositionAboveRight = 8, - - /// - /// SupportByVersion MSForms 2 - /// - /// 9 - [SupportByVersion("MSForms", 2)] - fmPicturePositionBelowLeft = 9, - - /// - /// SupportByVersion MSForms 2 - /// - /// 10 - [SupportByVersion("MSForms", 2)] - fmPicturePositionBelowCenter = 10, - - /// - /// SupportByVersion MSForms 2 - /// - /// 11 - [SupportByVersion("MSForms", 2)] - fmPicturePositionBelowRight = 11, - - /// - /// SupportByVersion MSForms 2 - /// - /// 12 - [SupportByVersion("MSForms", 2)] - fmPicturePositionCenter = 12 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmPictureSizeMode.cs b/Source/MSForms/Enums/fmPictureSizeMode.cs deleted file mode 100644 index 57f30bf6de..0000000000 --- a/Source/MSForms/Enums/fmPictureSizeMode.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmPictureSizeMode - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmPictureSizeModeClip = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmPictureSizeModeStretch = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmPictureSizeModeZoom = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmRepeatDirection.cs b/Source/MSForms/Enums/fmRepeatDirection.cs deleted file mode 100644 index a2899677e0..0000000000 --- a/Source/MSForms/Enums/fmRepeatDirection.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmRepeatDirection - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - _fmRepeatDirectionHorizontal = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - _fmRepeatDirectionVertical = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmScrollAction.cs b/Source/MSForms/Enums/fmScrollAction.cs deleted file mode 100644 index 792a3babbf..0000000000 --- a/Source/MSForms/Enums/fmScrollAction.cs +++ /dev/null @@ -1,90 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmScrollAction - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmScrollActionNoChange = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmScrollActionLineUp = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmScrollActionLineDown = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmScrollActionPageUp = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmScrollActionPageDown = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmScrollActionBegin = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmScrollActionEnd = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - _fmScrollActionAbsoluteChange = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmScrollActionPropertyChange = 8, - - /// - /// SupportByVersion MSForms 2 - /// - /// 9 - [SupportByVersion("MSForms", 2)] - fmScrollActionControlRequest = 9, - - /// - /// SupportByVersion MSForms 2 - /// - /// 10 - [SupportByVersion("MSForms", 2)] - fmScrollActionFocusRequest = 10 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmScrollBars.cs b/Source/MSForms/Enums/fmScrollBars.cs deleted file mode 100644 index be1f90707b..0000000000 --- a/Source/MSForms/Enums/fmScrollBars.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmScrollBars - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmScrollBarsNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmScrollBarsHorizontal = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmScrollBarsVertical = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmScrollBarsBoth = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmShowDropButtonWhen.cs b/Source/MSForms/Enums/fmShowDropButtonWhen.cs deleted file mode 100644 index 6899f7d00d..0000000000 --- a/Source/MSForms/Enums/fmShowDropButtonWhen.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmShowDropButtonWhen - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmShowDropButtonWhenNever = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmShowDropButtonWhenFocus = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmShowDropButtonWhenAlways = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmShowListWhen.cs b/Source/MSForms/Enums/fmShowListWhen.cs deleted file mode 100644 index 15d866486d..0000000000 --- a/Source/MSForms/Enums/fmShowListWhen.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmShowListWhen - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmShowListWhenNever = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmShowListWhenButton = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmShowListWhenFocus = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmShowListWhenAlways = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmSnapPoint.cs b/Source/MSForms/Enums/fmSnapPoint.cs deleted file mode 100644 index db9f2b50f2..0000000000 --- a/Source/MSForms/Enums/fmSnapPoint.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmSnapPoint - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmSnapPointTopLeft = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmSnapPointTopCenter = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmSnapPointTopRight = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmSnapPointCenterLeft = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmSnapPointCenter = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmSnapPointCenterRight = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmSnapPointBottomLeft = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmSnapPointBottomCenter = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmSnapPointBottomRight = 8 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmSpecialEffect.cs b/Source/MSForms/Enums/fmSpecialEffect.cs deleted file mode 100644 index 51bf7e8cea..0000000000 --- a/Source/MSForms/Enums/fmSpecialEffect.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmSpecialEffect - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmSpecialEffectFlat = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmSpecialEffectRaised = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmSpecialEffectSunken = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmSpecialEffectEtched = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmSpecialEffectBump = 6 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmStyle.cs b/Source/MSForms/Enums/fmStyle.cs deleted file mode 100644 index 6380578603..0000000000 --- a/Source/MSForms/Enums/fmStyle.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmStyleDropDownCombo = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmStyleDropDownList = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmTabOrientation.cs b/Source/MSForms/Enums/fmTabOrientation.cs deleted file mode 100644 index 372e24bccd..0000000000 --- a/Source/MSForms/Enums/fmTabOrientation.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmTabOrientation - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmTabOrientationTop = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmTabOrientationBottom = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmTabOrientationLeft = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmTabOrientationRight = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmTabStyle.cs b/Source/MSForms/Enums/fmTabStyle.cs deleted file mode 100644 index bb31a7c81b..0000000000 --- a/Source/MSForms/Enums/fmTabStyle.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmTabStyle - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmTabStyleTabs = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmTabStyleButtons = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmTabStyleNone = 2 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmTextAlign.cs b/Source/MSForms/Enums/fmTextAlign.cs deleted file mode 100644 index 60263c4e1e..0000000000 --- a/Source/MSForms/Enums/fmTextAlign.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmTextAlign - { - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmTextAlignLeft = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmTextAlignCenter = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmTextAlignRight = 3 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmTransitionEffect.cs b/Source/MSForms/Enums/fmTransitionEffect.cs deleted file mode 100644 index b857ee1431..0000000000 --- a/Source/MSForms/Enums/fmTransitionEffect.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmTransitionEffect - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectNone = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverUp = 1, - - /// - /// SupportByVersion MSForms 2 - /// - /// 2 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverRightUp = 2, - - /// - /// SupportByVersion MSForms 2 - /// - /// 3 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverRight = 3, - - /// - /// SupportByVersion MSForms 2 - /// - /// 4 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverRightDown = 4, - - /// - /// SupportByVersion MSForms 2 - /// - /// 5 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverDown = 5, - - /// - /// SupportByVersion MSForms 2 - /// - /// 6 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverLeftDown = 6, - - /// - /// SupportByVersion MSForms 2 - /// - /// 7 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverLeft = 7, - - /// - /// SupportByVersion MSForms 2 - /// - /// 8 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectCoverLeftUp = 8, - - /// - /// SupportByVersion MSForms 2 - /// - /// 9 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectPushUp = 9, - - /// - /// SupportByVersion MSForms 2 - /// - /// 10 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectPushRight = 10, - - /// - /// SupportByVersion MSForms 2 - /// - /// 11 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectPushDown = 11, - - /// - /// SupportByVersion MSForms 2 - /// - /// 12 - [SupportByVersion("MSForms", 2)] - fmTransitionEffectPushLeft = 12 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmVerticalScrollBarSide.cs b/Source/MSForms/Enums/fmVerticalScrollBarSide.cs deleted file mode 100644 index d5aa193294..0000000000 --- a/Source/MSForms/Enums/fmVerticalScrollBarSide.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmVerticalScrollBarSide - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmVerticalScrollBarSideRight = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmVerticalScrollBarSideLeft = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Enums/fmZOrder.cs b/Source/MSForms/Enums/fmZOrder.cs deleted file mode 100644 index f5f7b529ed..0000000000 --- a/Source/MSForms/Enums/fmZOrder.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using NetOffice; -using NetOffice.Attributes; -namespace NetOffice.MSFormsApi.Enums -{ - /// - /// SupportByVersion MSForms 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsEnum)] - public enum fmZOrder - { - /// - /// SupportByVersion MSForms 2 - /// - /// 0 - [SupportByVersion("MSForms", 2)] - fmZOrderFront = 0, - - /// - /// SupportByVersion MSForms 2 - /// - /// 1 - [SupportByVersion("MSForms", 2)] - fmZOrderBack = 1 - } -} \ No newline at end of file diff --git a/Source/MSForms/Events/CommandButtonEvents.cs b/Source/MSForms/Events/CommandButtonEvents.cs deleted file mode 100644 index 5c04c1e395..0000000000 --- a/Source/MSForms/Events/CommandButtonEvents.cs +++ /dev/null @@ -1,343 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("7B020EC1-AF6C-11CE-9F46-00AA00574A4F"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface CommandButtonEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class CommandButtonEvents_SinkHelper : SinkHelper, CommandButtonEvents - { - #region Static - - public static readonly string Id = "7B020EC1-AF6C-11CE-9F46-00AA00574A4F"; - - #endregion - - #region Construction - - public CommandButtonEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region CommandButtonEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/ControlEvents.cs b/Source/MSForms/Events/ControlEvents.cs deleted file mode 100644 index 012c4fc226..0000000000 --- a/Source/MSForms/Events/ControlEvents.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("9A4BBF53-4E46-101B-8BBD-00AA003E3B29"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface ControlEvents - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-2147384830)] - void Enter(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-2147384829)] - void Exit([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(NetOffice.MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-2147384831)] - void BeforeUpdate([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-2147384832)] - void AfterUpdate(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class ControlEvents_SinkHelper : SinkHelper, ControlEvents - { - #region Static - - public static readonly string Id = "9A4BBF53-4E46-101B-8BBD-00AA003E3B29"; - - #endregion - - #region Ctor - - public ControlEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region ControlEvents - - public void Enter() - { - if (!Validate("Enter")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Enter", ref paramsArray); - } - - public void Exit([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("Exit")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("Exit", ref paramsArray); - } - - public void BeforeUpdate([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("BeforeUpdate")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("BeforeUpdate", ref paramsArray); - } - - public void AfterUpdate() - { - if (!Validate("AfterUpdate")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("AfterUpdate", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/FormEvents.cs b/Source/MSForms/Events/FormEvents.cs deleted file mode 100644 index f98a3c45b1..0000000000 --- a/Source/MSForms/Events/FormEvents.cs +++ /dev/null @@ -1,455 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("5B9D8FC8-4A71-101B-97A6-00000B65C08B"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface FormEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(768)] - void AddControl([In, MarshalAs(UnmanagedType.IDispatch)] object control); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("state", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [SinkArgument("action", typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int16)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int16)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int16)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(770)] - void Layout(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(771)] - void RemoveControl([In, MarshalAs(UnmanagedType.IDispatch)] object control); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("actionX", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmScrollAction))] - [SinkArgument("actionY", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmScrollAction))] - [SinkArgument("requestDx", SinkArgumentType.Single)] - [SinkArgument("requestDy", SinkArgumentType.Single)] - [SinkArgument("actualDx", typeof(MSFormsApi.ReturnSingle))] - [SinkArgument("actualDy", typeof(MSFormsApi.ReturnSingle))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(772)] - void Scroll([In] object actionX, [In] object actionY, [In] object requestDx, [In] object requestDy, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDx, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDy); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("percent", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(773)] - void Zoom([In] [Out] ref object percent); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class FormEvents_SinkHelper : SinkHelper, FormEvents - { - #region Static - - public static readonly string Id = "5B9D8FC8-4A71-101B-97A6-00000B65C08B"; - - #endregion - - #region Ctor - - public FormEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region FormEvents - - public void AddControl([In, MarshalAs(UnmanagedType.IDispatch)] object control) - { - if (!Validate("AddControl")) - { - Invoker.ReleaseParamsArray(control); - return; - } - - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newControl; - EventBinding.RaiseCustomEvent("AddControl", ref paramsArray); - } - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, control, data, x, y, state, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newState = (NetOffice.MSFormsApi.Enums.fmDragState)state; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[8]; - paramsArray[0] = newCancel; - paramsArray[1] = newControl; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newState; - paramsArray[6] = newEffect; - paramsArray[7] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(cancel, control, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[8]; - paramsArray[0] = newCancel; - paramsArray[1] = newControl; - paramsArray[2] = newAction; - paramsArray[3] = newData; - paramsArray[4] = newX; - paramsArray[5] = newY; - paramsArray[6] = newEffect; - paramsArray[7] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(keyCode, shift); return; - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void Layout() - { - if (!Validate("Layout")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Layout", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("Layout")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = Convert.ToInt16(button); - Int16 newShift = Convert.ToInt16(shift); - Single newX = Convert.ToSingle(x); - Single newY = Convert.ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - public void RemoveControl([In, MarshalAs(UnmanagedType.IDispatch)] object control) - { - if (!Validate("RemoveControl")) - { - Invoker.ReleaseParamsArray(control); - return; - } - - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newControl; - EventBinding.RaiseCustomEvent("RemoveControl", ref paramsArray); - } - - public void Scroll([In] object actionX, [In] object actionY, [In] object requestDx, [In] object requestDy, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDx, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDy) - { - if (!Validate("Scroll")) - { - Invoker.ReleaseParamsArray(actionX, actionY, requestDx, requestDy, actualDx, actualDy); - return; - } - - NetOffice.MSFormsApi.Enums.fmScrollAction newActionX = (NetOffice.MSFormsApi.Enums.fmScrollAction)actionX; - NetOffice.MSFormsApi.Enums.fmScrollAction newActionY = (NetOffice.MSFormsApi.Enums.fmScrollAction)actionY; - Single newRequestDx = ToSingle(requestDx); - Single newRequestDy = ToSingle(requestDy); - NetOffice.MSFormsApi.ReturnSingle newActualDx = Factory.CreateKnownObjectFromComProxy(EventClass, actualDx, NetOffice.MSFormsApi.ReturnSingle.LateBindingApiWrapperType); - NetOffice.MSFormsApi.ReturnSingle newActualDy = Factory.CreateKnownObjectFromComProxy(EventClass, actualDy, NetOffice.MSFormsApi.ReturnSingle.LateBindingApiWrapperType); - object[] paramsArray = new object[6]; - paramsArray[0] = newActionX; - paramsArray[1] = newActionY; - paramsArray[2] = newRequestDx; - paramsArray[3] = newRequestDy; - paramsArray[4] = newActualDx; - paramsArray[5] = newActualDy; - EventBinding.RaiseCustomEvent("Scroll", ref paramsArray); - } - - public void Zoom([In] [Out] ref object percent) - { - if (!Validate("Zoom")) - { - return; - } - - object[] paramsArray = new object[1]; - paramsArray.SetValue(percent, 0); - EventBinding.RaiseCustomEvent("Zoom", ref paramsArray); - - percent = ToInt16(paramsArray[0]); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/ImageEvents.cs b/Source/MSForms/Events/ImageEvents.cs deleted file mode 100644 index 1615545240..0000000000 --- a/Source/MSForms/Events/ImageEvents.cs +++ /dev/null @@ -1,280 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("4C5992A5-6926-101B-9992-00000B65C6F9"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface ImageEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class ImageEvents_SinkHelper : SinkHelper, ImageEvents - { - #region Static - - public static readonly string Id = "4C5992A5-6926-101B-9992-00000B65C6F9"; - - #endregion - - #region Ctor - - public ImageEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region ImageEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = Convert.ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/LabelControlEvents.cs b/Source/MSForms/Events/LabelControlEvents.cs deleted file mode 100644 index daac3b18a9..0000000000 --- a/Source/MSForms/Events/LabelControlEvents.cs +++ /dev/null @@ -1,279 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("978C9E22-D4B0-11CE-BF2D-00AA003F40D0"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface LabelControlEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class LabelControlEvents_SinkHelper : SinkHelper, LabelControlEvents - { - #region Static - - public static readonly string Id = "978C9E22-D4B0-11CE-BF2D-00AA003F40D0"; - - #endregion - - #region Ctor - - public LabelControlEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region LabelControlEvents - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = Convert.ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MdcCheckBoxEvents.cs b/Source/MSForms/Events/MdcCheckBoxEvents.cs deleted file mode 100644 index b7138d77ac..0000000000 --- a/Source/MSForms/Events/MdcCheckBoxEvents.cs +++ /dev/null @@ -1,358 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("8BD21D42-EC42-11CE-9E0D-00AA006002F3"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MdcCheckBoxEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-610)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MdcCheckBoxEvents_SinkHelper : SinkHelper, MdcCheckBoxEvents - { - #region Static - - public static readonly string Id = "8BD21D42-EC42-11CE-9E0D-00AA006002F3"; - - #endregion - - #region Ctor - - public MdcCheckBoxEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MdcCheckBoxEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MdcComboEvents.cs b/Source/MSForms/Events/MdcComboEvents.cs deleted file mode 100644 index e633074605..0000000000 --- a/Source/MSForms/Events/MdcComboEvents.cs +++ /dev/null @@ -1,373 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("8BD21D32-EC42-11CE-9E0D-00AA006002F3"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MdcComboEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-610)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2002)] - void DropButtonClick(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MdcComboEvents_SinkHelper : SinkHelper, MdcComboEvents - { - #region Static - - public static readonly string Id = "8BD21D32-EC42-11CE-9E0D-00AA006002F3"; - - #endregion - - #region Ctor - - public MdcComboEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MdcComboEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void DropButtonClick() - { - if (!Validate("DropButtonClick")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("DropButtonClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MdcListEvents.cs b/Source/MSForms/Events/MdcListEvents.cs deleted file mode 100644 index 28e3a20dac..0000000000 --- a/Source/MSForms/Events/MdcListEvents.cs +++ /dev/null @@ -1,357 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("8BD21D22-EC42-11CE-9E0D-00AA006002F3"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MdcListEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-610)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MdcListEvents_SinkHelper : SinkHelper, MdcListEvents - { - #region Static - - public static readonly string Id = "8BD21D22-EC42-11CE-9E0D-00AA006002F3"; - - #endregion - - #region Ctor - - public MdcListEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MdcListEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = Convert.ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MdcOptionButtonEvents.cs b/Source/MSForms/Events/MdcOptionButtonEvents.cs deleted file mode 100644 index 613a5e3654..0000000000 --- a/Source/MSForms/Events/MdcOptionButtonEvents.cs +++ /dev/null @@ -1,357 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("8BD21D52-EC42-11CE-9E0D-00AA006002F3"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MdcOptionButtonEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-610)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MdcOptionButtonEvents_SinkHelper : SinkHelper, MdcOptionButtonEvents - { - #region Static - - public static readonly string Id = "8BD21D52-EC42-11CE-9E0D-00AA006002F3"; - - #endregion - - #region Ctor - - public MdcOptionButtonEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MdcOptionButtonEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MdcTextEvents.cs b/Source/MSForms/Events/MdcTextEvents.cs deleted file mode 100644 index 9ffb2cbff0..0000000000 --- a/Source/MSForms/Events/MdcTextEvents.cs +++ /dev/null @@ -1,369 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("8BD21D12-EC42-11CE-9E0D-00AA006002F3"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MdcTextEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2002)] - void DropButtonClick(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MdcTextEvents_SinkHelper : SinkHelper, MdcTextEvents - { - #region Static - - public static readonly string Id = "8BD21D12-EC42-11CE-9E0D-00AA006002F3"; - - #endregion - - #region Construction - - public MdcTextEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MdcTextEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void DropButtonClick() - { - if (!Validate("DropButtonClick")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("DropButtonClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MdcToggleButtonEvents.cs b/Source/MSForms/Events/MdcToggleButtonEvents.cs deleted file mode 100644 index a8098ff745..0000000000 --- a/Source/MSForms/Events/MdcToggleButtonEvents.cs +++ /dev/null @@ -1,358 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("8BD21D62-EC42-11CE-9E0D-00AA006002F3"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MdcToggleButtonEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-610)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MdcToggleButtonEvents_SinkHelper : SinkHelper, MdcToggleButtonEvents - { - #region Static - - public static readonly string Id = "8BD21D62-EC42-11CE-9E0D-00AA006002F3"; - - #endregion - - #region Ctor - - public MdcToggleButtonEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MdcToggleButtonEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/MultiPageEvents.cs b/Source/MSForms/Events/MultiPageEvents.cs deleted file mode 100644 index 3fc84c1c5e..0000000000 --- a/Source/MSForms/Events/MultiPageEvents.cs +++ /dev/null @@ -1,510 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("7B020EC8-AF6C-11CE-9F46-00AA00574A4F"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface MultiPageEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(768)] - void AddControl([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object control); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("state", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click([In] object index); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object index, [In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(770)] - void Layout([In] object index); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(771)] - void RemoveControl([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object control); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("actionX", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmScrollAction))] - [SinkArgument("actionY", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmScrollAction))] - [SinkArgument("requestDx", SinkArgumentType.Single)] - [SinkArgument("requestDy", SinkArgumentType.Single)] - [SinkArgument("actualDx", typeof(MSFormsApi.ReturnSingle))] - [SinkArgument("actualDy", typeof(MSFormsApi.ReturnSingle))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(772)] - void Scroll([In] object index, [In] object actionX, [In] object actionY, [In] object requestDx, [In] object requestDy, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDx, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDy); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(773)] - void Zoom([In] object index, [In] [Out] ref object percent); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class MultiPageEvents_SinkHelper : SinkHelper, MultiPageEvents - { - #region Static - - public static readonly string Id = "7B020EC8-AF6C-11CE-9F46-00AA00574A4F"; - - #endregion - - #region Ctor - - public MultiPageEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region MultiPageEvents - - public void AddControl([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object control) - { - if (!Validate("AddControl")) - { - Invoker.ReleaseParamsArray(index, control); - return; - } - - Int32 newIndex = ToInt32(index); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - object[] paramsArray = new object[2]; - paramsArray[0] = newIndex; - paramsArray[1] = newControl; - EventBinding.RaiseCustomEvent("AddControl", ref paramsArray); - } - - public void BeforeDragOver([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(index, cancel, control, data, x, y, state, effect, shift); - return; - } - - Int32 newIndex = Convert.ToInt32(index); - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newState = (NetOffice.MSFormsApi.Enums.fmDragState)state; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[9]; - paramsArray[0] = newIndex; - paramsArray[1] = newCancel; - paramsArray[2] = newControl; - paramsArray[3] = newData; - paramsArray[4] = newX; - paramsArray[5] = newY; - paramsArray[6] = newState; - paramsArray[7] = newEffect; - paramsArray[8] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(index, cancel, control, action, data, x, y, effect, shift); - return; - } - - Int32 newIndex = ToInt32(index); - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[9]; - paramsArray[0] = newIndex; - paramsArray[1] = newCancel; - paramsArray[2] = newControl; - paramsArray[3] = newAction; - paramsArray[4] = newData; - paramsArray[5] = newX; - paramsArray[6] = newY; - paramsArray[7] = newEffect; - paramsArray[8] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click([In] object index) - { - if (!Validate("Click")) - { - return; - } - - Int32 newIndex = ToInt32(index); - object[] paramsArray = new object[1]; - paramsArray[0] = newIndex; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(index, cancel); - return; - } - - Int32 newIndex = Convert.ToInt32(index); - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[2]; - paramsArray[0] = newIndex; - paramsArray[1] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object index, [In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(index, number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[8]; - paramsArray[0] = newIndex; - paramsArray[1] = newNumber; - paramsArray[2] = newDescription; - paramsArray[3] = newSCode; - paramsArray[4] = newSource; - paramsArray[5] = newHelpFile; - paramsArray[6] = newHelpContext; - paramsArray[7] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = Convert.ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void Layout([In] object index) - { - if (!Validate("Layout")) - { - Invoker.ReleaseParamsArray(index); - return; - } - - Int32 newIndex = ToInt32(index); - object[] paramsArray = new object[1]; - paramsArray[0] = newIndex; - EventBinding.RaiseCustomEvent("Layout", ref paramsArray); - } - - public void MouseDown([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(index, button, shift, x, y); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[5]; - paramsArray[0] = newIndex; - paramsArray[1] = newButton; - paramsArray[2] = newShift; - paramsArray[3] = newX; - paramsArray[4] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(index, button, shift, x, y); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[5]; - paramsArray[0] = newIndex; - paramsArray[1] = newButton; - paramsArray[2] = newShift; - paramsArray[3] = newX; - paramsArray[4] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(index, button, shift, x, y); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[5]; - paramsArray[0] = newIndex; - paramsArray[1] = newButton; - paramsArray[2] = newShift; - paramsArray[3] = newX; - paramsArray[4] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - public void RemoveControl([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object control) - { - if (!Validate("RemoveControl")) - { - Invoker.ReleaseParamsArray(index, control); - return; - } - - Int32 newIndex = ToInt32(index); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - object[] paramsArray = new object[2]; - paramsArray[0] = newIndex; - paramsArray[1] = newControl; - EventBinding.RaiseCustomEvent("RemoveControl", ref paramsArray); - } - - public void Scroll([In] object index, [In] object actionX, [In] object actionY, [In] object requestDx, [In] object requestDy, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDx, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDy) - { - if (!Validate("Scroll")) - { - Invoker.ReleaseParamsArray(index, actionX, actionY, requestDx, requestDy, actualDx, actualDy); - return; - } - - Int32 newIndex = Convert.ToInt32(index); - NetOffice.MSFormsApi.Enums.fmScrollAction newActionX = (NetOffice.MSFormsApi.Enums.fmScrollAction)actionX; - NetOffice.MSFormsApi.Enums.fmScrollAction newActionY = (NetOffice.MSFormsApi.Enums.fmScrollAction)actionY; - Single newRequestDx = ToSingle(requestDx); - Single newRequestDy = ToSingle(requestDy); - NetOffice.MSFormsApi.ReturnSingle newActualDx = Factory.CreateKnownObjectFromComProxy(EventClass, actualDx, NetOffice.MSFormsApi.ReturnSingle.LateBindingApiWrapperType); - NetOffice.MSFormsApi.ReturnSingle newActualDy = Factory.CreateKnownObjectFromComProxy(EventClass, actualDy, NetOffice.MSFormsApi.ReturnSingle.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newIndex; - paramsArray[1] = newActionX; - paramsArray[2] = newActionY; - paramsArray[3] = newRequestDx; - paramsArray[4] = newRequestDy; - paramsArray[5] = newActualDx; - paramsArray[6] = newActualDy; - EventBinding.RaiseCustomEvent("Scroll", ref paramsArray); - } - - public void Zoom([In] object index, [In] [Out] ref object percent) - { - if (!Validate("Zoom")) - { - Invoker.ReleaseParamsArray(index, percent); - return; - } - - Int32 newIndex = ToInt32(index); - object[] paramsArray = new object[2]; - paramsArray[0] = newIndex; - paramsArray.SetValue(percent, 1); - EventBinding.RaiseCustomEvent("Zoom", ref paramsArray); - - percent = ToInt32(paramsArray[1]); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/OptionFrameEvents.cs b/Source/MSForms/Events/OptionFrameEvents.cs deleted file mode 100644 index d1ebf4f76c..0000000000 --- a/Source/MSForms/Events/OptionFrameEvents.cs +++ /dev/null @@ -1,456 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("CF3F94A0-F546-11CE-9BCE-00AA00608E01"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface OptionFrameEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(768)] - void AddControl([In, MarshalAs(UnmanagedType.IDispatch)] object control); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("state", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(770)] - void Layout(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("control", typeof(MSFormsApi.Control))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(771)] - void RemoveControl([In, MarshalAs(UnmanagedType.IDispatch)] object control); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("actionX", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmScrollAction))] - [SinkArgument("actionY", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmScrollAction))] - [SinkArgument("requestDx", SinkArgumentType.Single)] - [SinkArgument("requestDy", SinkArgumentType.Single)] - [SinkArgument("actualDx", typeof(MSFormsApi.ReturnSingle))] - [SinkArgument("actualDy", typeof(MSFormsApi.ReturnSingle))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(772)] - void Scroll([In] object actionX, [In] object actionY, [In] object requestDx, [In] object requestDy, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDx, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDy); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("percent", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(773)] - void Zoom([In] [Out] ref object percent); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class OptionFrameEvents_SinkHelper : SinkHelper, OptionFrameEvents - { - #region Static - - public static readonly string Id = "CF3F94A0-F546-11CE-9BCE-00AA00608E01"; - - #endregion - - #region Ctor - - public OptionFrameEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region OptionFrameEvents - - public void AddControl([In, MarshalAs(UnmanagedType.IDispatch)] object control) - { - if (!Validate("AddControl")) - { - Invoker.ReleaseParamsArray(control); - return; - } - - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newControl; - EventBinding.RaiseCustomEvent("AddControl", ref paramsArray); - } - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, control, data, x, y, state, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = Convert.ToSingle(x); - Single newY = Convert.ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newState = (NetOffice.MSFormsApi.Enums.fmDragState)state; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[8]; - paramsArray[0] = newCancel; - paramsArray[1] = newControl; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newState; - paramsArray[6] = newEffect; - paramsArray[7] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(cancel, control, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[8]; - paramsArray[0] = newCancel; - paramsArray[1] = newControl; - paramsArray[2] = newAction; - paramsArray[3] = newData; - paramsArray[4] = newX; - paramsArray[5] = newY; - paramsArray[6] = newEffect; - paramsArray[7] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(cancel); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void Layout() - { - if (!Validate("Layout")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Layout", ref paramsArray); - } - - public void MouseDown([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(button, shift, x, y); - return; - } - - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[4]; - paramsArray[0] = newButton; - paramsArray[1] = newShift; - paramsArray[2] = newX; - paramsArray[3] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - public void RemoveControl([In, MarshalAs(UnmanagedType.IDispatch)] object control) - { - if (!Validate("RemoveControl")) - { - Invoker.ReleaseParamsArray(control); - return; - } - - NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newControl; - EventBinding.RaiseCustomEvent("RemoveControl", ref paramsArray); - } - - public void Scroll([In] object actionX, [In] object actionY, [In] object requestDx, [In] object requestDy, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDx, [In, MarshalAs(UnmanagedType.IDispatch)] object actualDy) - { - if (!Validate("Scroll")) - { - Invoker.ReleaseParamsArray(actionX, actionY, requestDx, requestDy, actualDx, actualDy); - return; - } - - NetOffice.MSFormsApi.Enums.fmScrollAction newActionX = (NetOffice.MSFormsApi.Enums.fmScrollAction)actionX; - NetOffice.MSFormsApi.Enums.fmScrollAction newActionY = (NetOffice.MSFormsApi.Enums.fmScrollAction)actionY; - Single newRequestDx = ToSingle(requestDx); - Single newRequestDy = ToSingle(requestDy); - NetOffice.MSFormsApi.ReturnSingle newActualDx = Factory.CreateKnownObjectFromComProxy(EventClass, actualDx, NetOffice.MSFormsApi.ReturnSingle.LateBindingApiWrapperType); - NetOffice.MSFormsApi.ReturnSingle newActualDy = Factory.CreateKnownObjectFromComProxy (EventClass, actualDy, NetOffice.MSFormsApi.ReturnSingle.LateBindingApiWrapperType); - object[] paramsArray = new object[6]; - paramsArray[0] = newActionX; - paramsArray[1] = newActionY; - paramsArray[2] = newRequestDx; - paramsArray[3] = newRequestDy; - paramsArray[4] = newActualDx; - paramsArray[5] = newActualDy; - EventBinding.RaiseCustomEvent("Scroll", ref paramsArray); - } - - public void Zoom([In] [Out] ref object percent) - { - if (!Validate("Zoom")) - { - Invoker.ReleaseParamsArray(percent); - return; - } - - object[] paramsArray = new object[1]; - paramsArray.SetValue(percent, 0); - EventBinding.RaiseCustomEvent("Zoom", ref paramsArray); - - percent = ToInt16(paramsArray[0]); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/ScrollbarEvents.cs b/Source/MSForms/Events/ScrollbarEvents.cs deleted file mode 100644 index 24126d9172..0000000000 --- a/Source/MSForms/Events/ScrollbarEvents.cs +++ /dev/null @@ -1,255 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("7B020EC2-AF6C-11CE-9F46-00AA00574A4F"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface ScrollbarEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] - void Scroll(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class ScrollbarEvents_SinkHelper : SinkHelper, ScrollbarEvents - { - #region Static - - public static readonly string Id = "7B020EC2-AF6C-11CE-9F46-00AA00574A4F"; - - #endregion - - #region Ctor - - public ScrollbarEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region ScrollbarEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void Scroll() - { - if (!Validate("Scroll")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Scroll", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/SpinbuttonEvents.cs b/Source/MSForms/Events/SpinbuttonEvents.cs deleted file mode 100644 index 41a7f3a737..0000000000 --- a/Source/MSForms/Events/SpinbuttonEvents.cs +++ /dev/null @@ -1,270 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("79176FB2-B7F2-11CE-97EF-00AA006D2776"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface SpinbuttonEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] - void SpinUp(); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] - void SpinDown(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class SpinbuttonEvents_SinkHelper : SinkHelper, SpinbuttonEvents - { - #region Static - - public static readonly string Id = "79176FB2-B7F2-11CE-97EF-00AA006D2776"; - - #endregion - - #region Ctor - - public SpinbuttonEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region SpinbuttonEvents - - public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newData; - paramsArray[2] = newX; - paramsArray[3] = newY; - paramsArray[4] = newDragState; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(cancel, action, data, x, y, effect, shift); - return; - } - - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[7]; - paramsArray[0] = newCancel; - paramsArray[1] = newAction; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newEffect; - paramsArray[6] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void SpinUp() - { - if (!Validate("SpinUp")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("SpinUp", ref paramsArray); - } - - public void SpinDown() - { - if (!Validate("SpinDown")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("SpinDown", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/TabStripEvents.cs b/Source/MSForms/Events/TabStripEvents.cs deleted file mode 100644 index 6f45be3404..0000000000 --- a/Source/MSForms/Events/TabStripEvents.cs +++ /dev/null @@ -1,374 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("7B020EC7-AF6C-11CE-9F46-00AA00574A4F"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface TabStripEvents - { - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("dragState", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmDragState))] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] - void BeforeDragOver([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [SinkArgument("action", SinkArgumentType.Enum, typeof(MSFormsApi.Enums.fmAction))] - [SinkArgument("data", typeof(MSFormsApi.DataObject))] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [SinkArgument("effect", typeof(MSFormsApi.ReturnEffect))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] - void BeforeDropOrPaste([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] - void Change(); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click([In] object index); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("index", SinkArgumentType.Int32)] - [SinkArgument("cancel", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-601)] - void DblClick([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("number", SinkArgumentType.Int32)] - [SinkArgument("description", typeof(MSFormsApi.ReturnString))] - [SinkArgument("sCode", SinkArgumentType.Int32)] - [SinkArgument("source", SinkArgumentType.String)] - [SinkArgument("helpFile", SinkArgumentType.String)] - [SinkArgument("helpContext", SinkArgumentType.Int32)] - [SinkArgument("cancelDisplay", typeof(MSFormsApi.ReturnBoolean))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-608)] - void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-602)] - void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyAscii", typeof(MSFormsApi.ReturnInteger))] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-603)] - void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("keyCode", typeof(MSFormsApi.ReturnInteger))] - [SinkArgument("shift", SinkArgumentType.Int16)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-604)] - void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-605)] - void MouseDown([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-606)] - void MouseMove([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y); - - [SupportByVersion("MSForms", 2)] - [SinkArgument("button", SinkArgumentType.Int16)] - [SinkArgument("shift", SinkArgumentType.Int16)] - [SinkArgument("x", SinkArgumentType.Single)] - [SinkArgument("y", SinkArgumentType.Single)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-607)] - void MouseUp([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class TabStripEvents_SinkHelper : SinkHelper, TabStripEvents - { - #region Static - - public static readonly string Id = "7B020EC7-AF6C-11CE-9F46-00AA00574A4F"; - - #endregion - - #region Ctor - - public TabStripEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region TabStripEvents - - public void BeforeDragOver([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDragOver")) - { - Invoker.ReleaseParamsArray(index, cancel, data, x, y, dragState, effect, shift); - return; - } - - Int32 newIndex = Convert.ToInt32(index); - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[8]; - paramsArray[0] = newIndex; - paramsArray[1] = newCancel; - paramsArray[2] = newData; - paramsArray[3] = newX; - paramsArray[4] = newY; - paramsArray[5] = newDragState; - paramsArray[6] = newEffect; - paramsArray[7] = newShift; - EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); - } - - public void BeforeDropOrPaste([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In] object action, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) - { - if (!Validate("BeforeDropOrPaste")) - { - Invoker.ReleaseParamsArray(index, cancel, action, data, x, y, effect, shift); - return; - } - - Int32 newIndex = Convert.ToInt32(index); - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - NetOffice.MSFormsApi.Enums.fmAction newAction = (NetOffice.MSFormsApi.Enums.fmAction)action; - NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[8]; - paramsArray[0] = newIndex; - paramsArray[1] = newCancel; - paramsArray[2] = newAction; - paramsArray[3] = newData; - paramsArray[4] = newX; - paramsArray[5] = newY; - paramsArray[6] = newEffect; - paramsArray[7] = newShift; - EventBinding.RaiseCustomEvent("BeforeDropOrPaste", ref paramsArray); - } - - public void Change() - { - if (!Validate("Change")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Change", ref paramsArray); - } - - public void Click([In] object index) - { - if (!Validate("Click")) - { - return; - } - - Int32 newIndex = ToInt32(index); - object[] paramsArray = new object[1]; - paramsArray[0] = newIndex; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - public void DblClick([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) - { - if (!Validate("DblClick")) - { - Invoker.ReleaseParamsArray(index, cancel); - return; - } - - Int32 newIndex = ToInt32(index); - NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[2]; - paramsArray[0] = newIndex; - paramsArray[1] = newCancel; - EventBinding.RaiseCustomEvent("DblClick", ref paramsArray); - } - - public void Error([In] object number, [In, MarshalAs(UnmanagedType.IDispatch)] object description, [In] object sCode, [In] object source, [In] object helpFile, [In] object helpContext, [In, MarshalAs(UnmanagedType.IDispatch)] object cancelDisplay) - { - if (!Validate("Error")) - { - Invoker.ReleaseParamsArray(number, description, sCode, source, helpFile, helpContext, cancelDisplay); - return; - } - - Int16 newNumber = ToInt16(number); - NetOffice.MSFormsApi.ReturnString newDescription = Factory.CreateKnownObjectFromComProxy(EventClass, description, NetOffice.MSFormsApi.ReturnString.LateBindingApiWrapperType); - Int32 newSCode = ToInt32(sCode); - string newSource = ToString(source); - string newHelpFile = ToString(helpFile); - Int32 newHelpContext = ToInt32(helpContext); - NetOffice.MSFormsApi.ReturnBoolean newCancelDisplay = Factory.CreateKnownObjectFromComProxy(EventClass, cancelDisplay, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); - object[] paramsArray = new object[7]; - paramsArray[0] = newNumber; - paramsArray[1] = newDescription; - paramsArray[2] = newSCode; - paramsArray[3] = newSource; - paramsArray[4] = newHelpFile; - paramsArray[5] = newHelpContext; - paramsArray[6] = newCancelDisplay; - EventBinding.RaiseCustomEvent("Error", ref paramsArray); - } - - public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyDown")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); - } - - public void KeyPress([In, MarshalAs(UnmanagedType.IDispatch)] object keyAscii) - { - if (!Validate("KeyPress")) - { - Invoker.ReleaseParamsArray(keyAscii); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyAscii = Factory.CreateKnownObjectFromComProxy(EventClass, keyAscii, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - object[] paramsArray = new object[1]; - paramsArray[0] = newKeyAscii; - EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); - } - - public void KeyUp([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) - { - if (!Validate("KeyUp")) - { - Invoker.ReleaseParamsArray(keyCode, shift); - return; - } - - NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); - Int16 newShift = ToInt16(shift); - object[] paramsArray = new object[2]; - paramsArray[0] = newKeyCode; - paramsArray[1] = newShift; - EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); - } - - public void MouseDown([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseDown")) - { - Invoker.ReleaseParamsArray(index, button, shift, x, y); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[5]; - paramsArray[0] = newIndex; - paramsArray[1] = newButton; - paramsArray[2] = newShift; - paramsArray[3] = newX; - paramsArray[4] = newY; - EventBinding.RaiseCustomEvent("MouseDown", ref paramsArray); - } - - public void MouseMove([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseMove")) - { - Invoker.ReleaseParamsArray(index, button, shift, x, y); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[5]; - paramsArray[0] = newIndex; - paramsArray[1] = newButton; - paramsArray[2] = newShift; - paramsArray[3] = newX; - paramsArray[4] = newY; - EventBinding.RaiseCustomEvent("MouseMove", ref paramsArray); - } - - public void MouseUp([In] object index, [In] object button, [In] object shift, [In] object x, [In] object y) - { - if (!Validate("MouseUp")) - { - Invoker.ReleaseParamsArray(index, button, shift, x, y); - return; - } - - Int32 newIndex = ToInt32(index); - Int16 newButton = ToInt16(button); - Int16 newShift = ToInt16(shift); - Single newX = ToSingle(x); - Single newY = ToSingle(y); - object[] paramsArray = new object[5]; - paramsArray[0] = newIndex; - paramsArray[1] = newButton; - paramsArray[2] = newShift; - paramsArray[3] = newX; - paramsArray[4] = newY; - EventBinding.RaiseCustomEvent("MouseUp", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents.cs b/Source/MSForms/Events/WHTMLControlEvents.cs deleted file mode 100644 index 3856f3de27..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("796ED650-5FE9-11CF-8D68-00AA00BDCE1D"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents_SinkHelper : SinkHelper, WHTMLControlEvents - { - #region Static - - public static readonly string Id = "796ED650-5FE9-11CF-8D68-00AA00BDCE1D"; - - #endregion - - #region Ctor - - public WHTMLControlEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents Members - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents1.cs b/Source/MSForms/Events/WHTMLControlEvents1.cs deleted file mode 100644 index ecf943d7fe..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents1.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE0-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents1 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents1_SinkHelper : SinkHelper, WHTMLControlEvents1 - { - #region Static - - public static readonly string Id = "47FF8FE0-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents1_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents1 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents10.cs b/Source/MSForms/Events/WHTMLControlEvents10.cs deleted file mode 100644 index 2ec615393e..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents10.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE9-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents10 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents10_SinkHelper : SinkHelper, WHTMLControlEvents10 - { - #region Static - - public static readonly string Id = "47FF8FE9-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents10_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents10 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents2.cs b/Source/MSForms/Events/WHTMLControlEvents2.cs deleted file mode 100644 index 1bf9c28540..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents2.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE1-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents2 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents2_SinkHelper : SinkHelper, WHTMLControlEvents2 - { - #region Static - - public static readonly string Id = "47FF8FE1-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents2_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents2 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents3.cs b/Source/MSForms/Events/WHTMLControlEvents3.cs deleted file mode 100644 index 9008af816a..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents3.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE2-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents3 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents3_SinkHelper : SinkHelper, WHTMLControlEvents3 - { - #region Static - - public static readonly string Id = "47FF8FE2-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents3_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents3 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents4.cs b/Source/MSForms/Events/WHTMLControlEvents4.cs deleted file mode 100644 index c333536221..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents4.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE3-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents4 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents4_SinkHelper : SinkHelper, WHTMLControlEvents4 - { - #region Static - - public static readonly string Id = "47FF8FE3-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents4_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents4 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents5.cs b/Source/MSForms/Events/WHTMLControlEvents5.cs deleted file mode 100644 index d1e380fb5c..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents5.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE4-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents5 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents5_SinkHelper : SinkHelper, WHTMLControlEvents5 - { - #region Static - - public static readonly string Id = "47FF8FE4-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents5_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents5 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents6.cs b/Source/MSForms/Events/WHTMLControlEvents6.cs deleted file mode 100644 index 83cfa8ae42..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents6.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE5-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents6 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents6_SinkHelper : SinkHelper, WHTMLControlEvents6 - { - #region Static - - public static readonly string Id = "47FF8FE5-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents6_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents6 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents7.cs b/Source/MSForms/Events/WHTMLControlEvents7.cs deleted file mode 100644 index 329a56512a..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents7.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE6-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents7 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents7_SinkHelper : SinkHelper, WHTMLControlEvents7 - { - #region Static - - public static readonly string Id = "47FF8FE6-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents7_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents7 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Events/WHTMLControlEvents9.cs b/Source/MSForms/Events/WHTMLControlEvents9.cs deleted file mode 100644 index bc3452f2c1..0000000000 --- a/Source/MSForms/Events/WHTMLControlEvents9.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using NetOffice; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi.Events -{ - #pragma warning disable - - #region SinkPoint Interface - - [SupportByVersion("MSForms", 2)] - [InternalEntity(InternalEntityKind.ComEventInterface)] - [ComImport, Guid("47FF8FE8-6198-11CF-8CE8-00AA006CB389"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)] - public interface WHTMLControlEvents9 - { - [SupportByVersion("MSForms", 2)] - [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-600)] - void Click(); - } - - #endregion - - #region SinkHelper - - [InternalEntity(InternalEntityKind.SinkHelper)] - [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)] - public class WHTMLControlEvents9_SinkHelper : SinkHelper, WHTMLControlEvents9 - { - #region Static - - public static readonly string Id = "47FF8FE8-6198-11CF-8CE8-00AA006CB389"; - - #endregion - - #region Ctor - - public WHTMLControlEvents9_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass) - { - SetupEventBinding(connectPoint); - } - - #endregion - - #region WHTMLControlEvents9 - - public void Click() - { - if (!Validate("Click")) - { - return; - } - - object[] paramsArray = new object[0]; - EventBinding.RaiseCustomEvent("Click", ref paramsArray); - } - - #endregion - } - - #endregion - - #pragma warning restore -} \ No newline at end of file diff --git a/Source/MSForms/Interfaces/IFont.cs b/Source/MSForms/Interfaces/IFont.cs deleted file mode 100644 index 9afecd0152..0000000000 --- a/Source/MSForms/Interfaces/IFont.cs +++ /dev/null @@ -1,328 +0,0 @@ -using System.Reflection; -using System; -using NetRuntimeSystem = System; -using System.ComponentModel; -using NetOffice.Attributes; - -namespace NetOffice.MSFormsApi -{ - /// - /// Interface IFont - /// SupportByVersion MSForms, 2 - /// - [SupportByVersion("MSForms", 2)] - [EntityType(EntityType.IsInterface)] - public class IFont : COMObject - { - #pragma warning disable - - #region Type Information - - /// - /// Instance Type - /// - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] - public override Type InstanceType - { - get - { - return LateBindingApiWrapperType; - } - } - - private static Type _type; - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public static Type LateBindingApiWrapperType - { - get - { - if (null == _type) - _type = typeof(IFont); - return _type; - } - } - - #endregion - - #region Ctor - - /// current used factory core - /// object there has created the proxy - /// proxy share instead if com proxy - public IFont(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - public IFont(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IFont(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) - { - } - - ///current used factory core - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IFont(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) - { - - } - - ///object there has created the proxy - ///inner wrapped COM proxy - ///Type of inner wrapped COM proxy" - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IFont(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) - { - } - - ///object to replaced. replacedObject are not usable after this action - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IFont(ICOMObject replacedObject) : base(replacedObject) - { - } - - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IFont() : base() - { - } - - /// registered progID - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] - public IFont(string progId) : base(progId) - { - } - - #endregion - - #region Properties - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public string Name - { - get - { - return Factory.ExecuteStringPropertyGet(this, "Name"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Name", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public float Size - { - get - { - return Factory.ExecuteFloatPropertyGet(this, "Size"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Size", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Bold - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Bold"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Bold", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Italic - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Italic"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Italic", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Underline - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Underline"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Underline", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public bool Strikethrough - { - get - { - return Factory.ExecuteBoolPropertyGet(this, "Strikethrough"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Strikethrough", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 Weight - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "Weight"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Weight", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get/Set - /// - [SupportByVersion("MSForms", 2)] - public Int16 Charset - { - get - { - return Factory.ExecuteInt16PropertyGet(this, "Charset"); - } - set - { - Factory.ExecuteValuePropertySet(this, "Charset", value); - } - } - - /// - /// SupportByVersion MSForms 2 - /// Get - /// - [SupportByVersion("MSForms", 2)] - public Int32 hFont - { - get - { - return Factory.ExecuteInt32PropertyGet(this, "hFont"); - } - } - - #endregion - - #region Methods - - /// - /// SupportByVersion MSForms 2 - /// - /// NetOffice.MSFormsApi.IFont lplpfont - [SupportByVersion("MSForms", 2)] - public Int32 Clone(out NetOffice.MSFormsApi.IFont lplpfont) - { - ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true); - lplpfont = null; - object[] paramsArray = Invoker.ValidateParamsArray(new object()); - object returnItem = Invoker.MethodReturn(this, "Clone", paramsArray, modifiers); - if (paramsArray[1] is MarshalByRefObject) - paramsArray[1] = new NetOffice.MSFormsApi.IFont(this, paramsArray[1]); - else - paramsArray[1] = null; - lplpfont = (NetOffice.MSFormsApi.IFont)paramsArray[0]; - return NetRuntimeSystem.Convert.ToInt32(returnItem); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// NetOffice.MSFormsApi.IFont lpFontOther - [SupportByVersion("MSForms", 2)] - public Int32 IsEqual(NetOffice.MSFormsApi.IFont lpFontOther) - { - return Factory.ExecuteInt32MethodGet(this, "IsEqual", lpFontOther); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 cyLogical - /// Int32 cyHimetric - [SupportByVersion("MSForms", 2)] - public Int32 SetRatio(Int32 cyLogical, Int32 cyHimetric) - { - return Factory.ExecuteInt32MethodGet(this, "SetRatio", cyLogical, cyHimetric); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 hFont - [SupportByVersion("MSForms", 2)] - public Int32 AddRefHfont(Int32 hFont) - { - return Factory.ExecuteInt32MethodGet(this, "AddRefHfont", hFont); - } - - /// - /// SupportByVersion MSForms 2 - /// - /// Int32 hFont - [SupportByVersion("MSForms", 2)] - public Int32 ReleaseHfont(Int32 hFont) - { - return Factory.ExecuteInt32MethodGet(this, "ReleaseHfont", hFont); - } - - #endregion - - #pragma warning restore - } -} diff --git a/Source/MSForms/MSFormsApi.csproj b/Source/MSForms/MSFormsApi.csproj deleted file mode 100644 index c69aa9dd02..0000000000 --- a/Source/MSForms/MSFormsApi.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - MSForms - Netoffice MSForms Api - NetOffice.MSFormsApi - - - MSFormsApi_v4.0.snk - - - - - - - - false - false - - - - - - diff --git a/Source/MSForms/MSFormsApi_v4.0.snk b/Source/MSForms/MSFormsApi_v4.0.snk deleted file mode 100644 index 65d1c98f46..0000000000 Binary files a/Source/MSForms/MSFormsApi_v4.0.snk and /dev/null differ diff --git a/Source/MSForms/Utils/ProjectInfo.cs b/Source/MSForms/Utils/ProjectInfo.cs deleted file mode 100644 index 4df6d90c26..0000000000 --- a/Source/MSForms/Utils/ProjectInfo.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System; -using System.Reflection; -using NetOffice; -using NetOffice.Attributes; - -namespace MSFormsApi.Utils -{ - #pragma warning disable - /// - /// Necessary factory info, used from NetOffice.Core while Initialize() - /// - public class ProjectInfo : IFactoryInfo - { - #region Fields - - private string _name; - private string _namespace = "NetOffice.MSFormsApi"; - //first guid is MSForms, second guid is VBE.Forms - private Guid[] _componentGuid = - new Guid[]{new Guid("0D452EE1-E08F-101A-852E-02608C4D0BB4"), - new Guid("ac2de821-36a2-11cf-8053-00aa006009fa")}; - private Assembly _assembly; - private NetOfficeAssemblyAttribute _assemblyAttribute; - private Type[] _exportedTypes; - private string[] _dependents; - - #endregion - - #region Ctor - - public ProjectInfo() - { - _assembly = typeof(ProjectInfo).Assembly; - _assemblyAttribute = _assembly.GetCustomAttributes(typeof(NetOfficeAssemblyAttribute), true)[0] as NetOfficeAssemblyAttribute; - _name = _assembly.GetName().Name; - } - - #endregion - - #region IFactoryInfo - - public string AssemblyName - { - get - { - return _name; - } - } - - public string AssemblyNamespace - { - get - { - return _namespace; - } - } - - public Guid[] ComponentGuid - { - get - { - return _componentGuid; - } - } - - public Assembly Assembly - { - get - { - return _assembly; - } - } - - public NetOfficeAssemblyAttribute AssemblyAttribute - { - get - { - return _assemblyAttribute; - } - } - - public string[] Dependencies - { - get - { - if(null == _dependents) - _dependents = new string[0]; - return _dependents; - } - } - - public bool IsDuck - { - get - { - return false; - } - } - - public bool Contains(Type type) - { - if (null == _exportedTypes) - _exportedTypes = Assembly.GetExportedTypes(); - - foreach (Type item in _exportedTypes) - { - if (item == type) - return true; - } - - return false; - } - - public bool Contains(string className) - { - if (null == _exportedTypes) - _exportedTypes = Assembly.GetExportedTypes(); - - foreach (Type item in _exportedTypes) - { - if (item.Name.EndsWith(className, StringComparison.InvariantCultureIgnoreCase)) - return true; - } - - return false; - } - - #endregion - } - #pragma warning restore -} diff --git a/Source/NetOffice.sln b/Source/NetOffice.sln index 7c57d437eb..55d6b7038b 100644 --- a/Source/NetOffice.sln +++ b/Source/NetOffice.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 16 -VisualStudioVersion = 16.0.30204.135 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32804.467 MinimumVisualStudioVersion = 15.0.28010.2048 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientApplication", "ClientApplication\ClientApplication.csproj", "{DF73F99F-DFC0-42D1-9EDF-AD7D890C53D5}" ProjectSection(ProjectDependencies) = postProject @@ -47,8 +47,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSComctlLibApi", "MSComctlL EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSDATASRCApi", "MSDATASRC\MSDATASRCApi.csproj", "{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSFormsApi", "MSForms\MSFormsApi.csproj", "{F1A3EBA7-5C09-4986-9821-244E8468FBAE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VisioApi", "Visio\VisioApi.csproj", "{581B0DB6-8146-4729-9AE6-61B27F53B3E6}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublisherApi", "Publisher\PublisherApi.csproj", "{044A2BC3-7F84-4BEC-8B99-9E3432FAD88E}" @@ -126,11 +124,6 @@ Global {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Debug|Any CPU.Build.0 = Debug|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Any CPU.ActiveCfg = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Any CPU.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.Deploy.0 = Release|Any CPU {581B0DB6-8146-4729-9AE6-61B27F53B3E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {581B0DB6-8146-4729-9AE6-61B27F53B3E6}.Debug|Any CPU.Build.0 = Debug|Any CPU {581B0DB6-8146-4729-9AE6-61B27F53B3E6}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/Source/NetOffice/Attributes/DuplicateAttribute.cs b/Source/NetOffice/Attributes/DuplicateAttribute.cs index 5e32a5d66e..69c33147d4 100644 --- a/Source/NetOffice/Attributes/DuplicateAttribute.cs +++ b/Source/NetOffice/Attributes/DuplicateAttribute.cs @@ -122,9 +122,4 @@ ADODB.ConnectionEventsVt_Deprecated ADODB.ConnectionEventsVt 0000040 ADODB.RecordsetEventsVt_Deprecated ADODB.RecordsetEventsVt 00000403-0000-0010-8000-00AA006D2EA4 ADODB.ADORecordsetConstruction_Deprecated ADODB.ADORecordsetConstruction 00000283-0000-0010-8000-00AA006D2EA4 -* Known duplicate types by type-id in a another type library we don't spend a wrapper for -* ---------------------------------- -MSForms.Font stdole.Font BEF6E003-A874-101A-8BBA-00AA00300CAB -MSForms.IFont stdole.IFont BEF6E002-A874-101A-8BBA-00AA00300CAB -* */ \ No newline at end of file diff --git a/Source/NetOffice/KeyTokens.txt b/Source/NetOffice/KeyTokens.txt index bb4754469d..05e6fdbe8c 100644 --- a/Source/NetOffice/KeyTokens.txt +++ b/Source/NetOffice/KeyTokens.txt @@ -14,6 +14,5 @@ PowerPointApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=f3aefb8851e52dd2 VBIDEApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=931cec8882205047 VisioApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=bfcd37a3a83f1609 WordApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=f66d74591aaf8089 -MSFormsApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=a65c2341212e2d10 PublisherApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=2133a4c2cfc56bf6 IExcelApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=c507a5667bd1b6bd \ No newline at end of file diff --git a/Source/NetOffice/Loader/CurrentAppDomain.cs b/Source/NetOffice/Loader/CurrentAppDomain.cs index ae61ea520a..dbb0105139 100644 --- a/Source/NetOffice/Loader/CurrentAppDomain.cs +++ b/Source/NetOffice/Loader/CurrentAppDomain.cs @@ -17,7 +17,7 @@ internal class CurrentAppDomain "OfficeApi.dll", "ExcelApi.dll", "WordApi.dll", "OutlookApi.dll", "PowerPointApi.dll", "AccessApi.dll", "VisioApi.dll", "MSProjectApi.dll", "PublisherApi.dll", - "VBIDEApi.dll", "MSFormsApi.dll" + "VBIDEApi.dll" }; #endregion diff --git a/Tests/Concept Tests/CommonUtils/ConsoleApplication1.sln b/Tests/Concept Tests/CommonUtils/ConsoleApplication1.sln index fba122c5b4..b08b01d844 100644 --- a/Tests/Concept Tests/CommonUtils/ConsoleApplication1.sln +++ b/Tests/Concept Tests/CommonUtils/ConsoleApplication1.sln @@ -1,41 +1,41 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32804.467 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.csproj", "{E21AB5C3-818A-4D5A-883A-4AFA9DA17715}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccessApi", "..\..\..\Source\Access\AccessApi.csproj", "{61C1EB27-64CC-4E88-A3AE-1E6D002E15D1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccessApi", "..\..\..\Source\Access\AccessApi.csproj", "{61C1EB27-64CC-4E88-A3AE-1E6D002E15D1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADODBApi", "..\..\..\Source\ADODB\ADODBApi.csproj", "{CBF10BD9-CFC5-4F6B-9BC1-374BC7C6DB80}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ADODBApi", "..\..\..\Source\ADODB\ADODBApi.csproj", "{CBF10BD9-CFC5-4F6B-9BC1-374BC7C6DB80}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DAOApi", "..\..\..\Source\DAO\DAOApi.csproj", "{9F9E1AA6-516C-4121-87A9-241C80528866}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DAOApi", "..\..\..\Source\DAO\DAOApi.csproj", "{9F9E1AA6-516C-4121-87A9-241C80528866}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExcelApi", "..\..\..\Source\Excel\ExcelApi.csproj", "{43C2FFD2-1680-490A-B0CF-BE425D6EEC7C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExcelApi", "..\..\..\Source\Excel\ExcelApi.csproj", "{43C2FFD2-1680-490A-B0CF-BE425D6EEC7C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSComctlLibApi", "..\..\..\Source\MSComctlLib\MSComctlLibApi.csproj", "{76A38510-A8E7-4B6F-A90B-10384D845F42}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSComctlLibApi", "..\..\..\Source\MSComctlLib\MSComctlLibApi.csproj", "{76A38510-A8E7-4B6F-A90B-10384D845F42}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSDATASRCApi", "..\..\..\Source\MSDATASRC\MSDATASRCApi.csproj", "{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSDATASRCApi", "..\..\..\Source\MSDATASRC\MSDATASRCApi.csproj", "{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSFormsApi", "..\..\..\Source\MSForms\MSFormsApi.csproj", "{F1A3EBA7-5C09-4986-9821-244E8468FBAE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSHTMLApi", "..\..\..\Source\MSHTML\MSHTMLApi.csproj", "{26837F52-660E-424D-80B8-30D0427E00B5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSHTMLApi", "..\..\..\Source\MSHTML\MSHTMLApi.csproj", "{26837F52-660E-424D-80B8-30D0427E00B5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSProjectApi", "..\..\..\Source\MSProject\MSProjectApi.csproj", "{6C715072-6B0D-43D5-B620-2AC997CEF2CA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSProjectApi", "..\..\..\Source\MSProject\MSProjectApi.csproj", "{6C715072-6B0D-43D5-B620-2AC997CEF2CA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetOffice", "..\..\..\Source\NetOffice\NetOffice.csproj", "{65442327-D01F-4ECB-8C39-6D5C7622A80F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetOffice", "..\..\..\Source\NetOffice\NetOffice.csproj", "{65442327-D01F-4ECB-8C39-6D5C7622A80F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OfficeApi", "..\..\..\Source\Office\OfficeApi.csproj", "{79B19A83-A79F-446C-9B7E-9B595E918E40}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OfficeApi", "..\..\..\Source\Office\OfficeApi.csproj", "{79B19A83-A79F-446C-9B7E-9B595E918E40}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutlookApi", "..\..\..\Source\Outlook\OutlookApi.csproj", "{98DE103A-F036-4814-A740-9B4DE13001FF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutlookApi", "..\..\..\Source\Outlook\OutlookApi.csproj", "{98DE103A-F036-4814-A740-9B4DE13001FF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OWC10Api", "..\..\..\Source\OWC10\OWC10Api.csproj", "{AE08E748-9569-4538-8BB1-F9E7AF0FCB3C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OWC10Api", "..\..\..\Source\OWC10\OWC10Api.csproj", "{AE08E748-9569-4538-8BB1-F9E7AF0FCB3C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerPointApi", "..\..\..\Source\PowerPoint\PowerPointApi.csproj", "{D2DF07D1-46EA-4578-9183-9ABB368547E5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerPointApi", "..\..\..\Source\PowerPoint\PowerPointApi.csproj", "{D2DF07D1-46EA-4578-9183-9ABB368547E5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VBIDEApi", "..\..\..\Source\VBIDE\VBIDEApi.csproj", "{ACD7DB2E-DDB2-4BBB-BDB9-C2FD953585C4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VBIDEApi", "..\..\..\Source\VBIDE\VBIDEApi.csproj", "{ACD7DB2E-DDB2-4BBB-BDB9-C2FD953585C4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VisioApi", "..\..\..\Source\Visio\VisioApi.csproj", "{581B0DB6-8146-4729-9AE6-61B27F53B3E6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisioApi", "..\..\..\Source\Visio\VisioApi.csproj", "{581B0DB6-8146-4729-9AE6-61B27F53B3E6}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordApi", "..\..\..\Source\Word\WordApi.csproj", "{5C457066-D488-4BC1-B7F8-1E90F2A80648}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordApi", "..\..\..\Source\Word\WordApi.csproj", "{5C457066-D488-4BC1-B7F8-1E90F2A80648}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,16 +117,6 @@ Global {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Mixed Platforms.Build.0 = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|x86.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|x86.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|x86.ActiveCfg = Release|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Any CPU.Build.0 = Debug|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU @@ -231,4 +221,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EC780711-63BC-48E1-97A7-5BE1F9CEBDAD} + EndGlobalSection EndGlobal diff --git a/Tests/Concept Tests/CommonUtils/ConsoleApplication1/ConsoleApplication1.csproj b/Tests/Concept Tests/CommonUtils/ConsoleApplication1/ConsoleApplication1.csproj index cd65086a4d..629aaa4e7c 100644 --- a/Tests/Concept Tests/CommonUtils/ConsoleApplication1/ConsoleApplication1.csproj +++ b/Tests/Concept Tests/CommonUtils/ConsoleApplication1/ConsoleApplication1.csproj @@ -71,10 +71,6 @@ {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6} MSDATASRCApi - - {F1A3EBA7-5C09-4986-9821-244E8468FBAE} - MSFormsApi - {26837F52-660E-424D-80B8-30D0427E00B5} MSHTMLApi diff --git a/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1.sln b/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1.sln index fba122c5b4..f42aa68709 100644 --- a/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1.sln +++ b/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1.sln @@ -15,8 +15,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSComctlLibApi", "..\..\..\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSDATASRCApi", "..\..\..\Source\MSDATASRC\MSDATASRCApi.csproj", "{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSFormsApi", "..\..\..\Source\MSForms\MSFormsApi.csproj", "{F1A3EBA7-5C09-4986-9821-244E8468FBAE}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSHTMLApi", "..\..\..\Source\MSHTML\MSHTMLApi.csproj", "{26837F52-660E-424D-80B8-30D0427E00B5}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSProjectApi", "..\..\..\Source\MSProject\MSProjectApi.csproj", "{6C715072-6B0D-43D5-B620-2AC997CEF2CA}" @@ -117,16 +115,6 @@ Global {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Mixed Platforms.Build.0 = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|x86.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|x86.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|x86.ActiveCfg = Release|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Any CPU.Build.0 = Debug|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU diff --git a/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1/ConsoleApplication1.csproj b/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1/ConsoleApplication1.csproj index cd65086a4d..629aaa4e7c 100644 --- a/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1/ConsoleApplication1.csproj +++ b/Tests/Concept Tests/CreateInstanceEvent/ConsoleApplication1/ConsoleApplication1.csproj @@ -71,10 +71,6 @@ {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6} MSDATASRCApi - - {F1A3EBA7-5C09-4986-9821-244E8468FBAE} - MSFormsApi - {26837F52-660E-424D-80B8-30D0427E00B5} MSHTMLApi diff --git a/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1.sln b/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1.sln index fba122c5b4..f42aa68709 100644 --- a/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1.sln +++ b/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1.sln @@ -15,8 +15,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSComctlLibApi", "..\..\..\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSDATASRCApi", "..\..\..\Source\MSDATASRC\MSDATASRCApi.csproj", "{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSFormsApi", "..\..\..\Source\MSForms\MSFormsApi.csproj", "{F1A3EBA7-5C09-4986-9821-244E8468FBAE}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSHTMLApi", "..\..\..\Source\MSHTML\MSHTMLApi.csproj", "{26837F52-660E-424D-80B8-30D0427E00B5}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSProjectApi", "..\..\..\Source\MSProject\MSProjectApi.csproj", "{6C715072-6B0D-43D5-B620-2AC997CEF2CA}" @@ -117,16 +115,6 @@ Global {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Mixed Platforms.Build.0 = Release|Any CPU {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|x86.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Debug|x86.ActiveCfg = Debug|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Any CPU.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F1A3EBA7-5C09-4986-9821-244E8468FBAE}.Release|x86.ActiveCfg = Release|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Any CPU.Build.0 = Debug|Any CPU {26837F52-660E-424D-80B8-30D0427E00B5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU diff --git a/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1/ConsoleApplication1.csproj b/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1/ConsoleApplication1.csproj index cd65086a4d..629aaa4e7c 100644 --- a/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1/ConsoleApplication1.csproj +++ b/Tests/Concept Tests/PerformanceTrace/ConsoleApplication1/ConsoleApplication1.csproj @@ -71,10 +71,6 @@ {9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6} MSDATASRCApi - - {F1A3EBA7-5C09-4986-9821-244E8468FBAE} - MSFormsApi - {26837F52-660E-424D-80B8-30D0427E00B5} MSHTMLApi diff --git a/Toolbox/Toolbox/NetOffice.DeveloperToolbox.csproj b/Toolbox/Toolbox/NetOffice.DeveloperToolbox.csproj index c8912a93b0..283e321f34 100644 --- a/Toolbox/Toolbox/NetOffice.DeveloperToolbox.csproj +++ b/Toolbox/Toolbox/NetOffice.DeveloperToolbox.csproj @@ -87,11 +87,6 @@ ..\..\Assemblies\Any CPU\MSDATASRCApi.dll False - - False - False - ..\..\Assemblies\Any CPU\MSFormsApi.dll - ..\..\Assemblies\Any CPU\MSHTMLApi.dll False diff --git a/Toolbox/Toolbox/Program.cs b/Toolbox/Toolbox/Program.cs index 62e25f8f36..3602391423 100644 --- a/Toolbox/Toolbox/Program.cs +++ b/Toolbox/Toolbox/Program.cs @@ -44,7 +44,7 @@ internal static class Program "MSHTMLApi.dll", "MSProjectApi.dll", "NetOffice.dll", "OfficeApi.dll", "OutlookApi.dll", "OWC10Api.dll", "PowerPointApi.dll", "VBIDEApi.dll", "VisioApi.dll", - "WordApi.dll", "MSFormsApi.dll", "PublisherApi.dll" }; + "WordApi.dll", "PublisherApi.dll" }; ///