@@ -516,7 +516,7 @@ public static bool DoesClassImplementInterface(TypeInfoWrapper classTypeInfo, st
516
516
/// <param name="projectName">VBA Project name, as declared in the VBE</param>
517
517
/// <param name="className">Document class name, as declared in the VBA project</param>
518
518
/// <param name="interfaceProgIDs">An array of interface names, preceeded by the library container name, e.g. "Excel._Worksheet"</param>
519
- /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched</param>
519
+ /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched, or -1 if no match </param>
520
520
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
521
521
public static bool DoesClassImplementInterface ( IVBE ide , string projectName , string className , string [ ] interfaceProgIDs , out int matchedIndex )
522
522
{
@@ -532,7 +532,7 @@ public static bool DoesClassImplementInterface(IVBE ide, string projectName, str
532
532
/// <param name="project">Safe-com wrapper representing the VBE project</param>
533
533
/// <param name="className">Document class name, as declared in the VBA project</param>
534
534
/// <param name="interfaceProgIDs">An array of interface names, preceeded by the library container name, e.g. "Excel._Worksheet"</param>
535
- /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched</param>
535
+ /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched, or -1 if no match </param>
536
536
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
537
537
public static bool DoesClassImplementInterface ( IVBProject project , string className , string [ ] interfaceProgIDs , out int matchedIndex )
538
538
{
@@ -548,7 +548,7 @@ public static bool DoesClassImplementInterface(IVBProject project, string classN
548
548
/// <param name="projectTypeLib">Low-level ITypeLib wrapper representing the VBA project</param>
549
549
/// <param name="className">Document class name, as declared in the VBA project</param>
550
550
/// <param name="interfaceProgIDs">An array of interface names, preceeded by the library container name, e.g. "Excel._Worksheet"</param>
551
- /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched</param>
551
+ /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched, or -1 if no match </param>
552
552
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
553
553
public static bool DoesClassImplementInterface ( TypeLibWrapper projectTypeLib , string className , string [ ] interfaceProgIDs , out int matchedIndex )
554
554
{
@@ -560,7 +560,7 @@ public static bool DoesClassImplementInterface(TypeLibWrapper projectTypeLib, st
560
560
/// </summary>
561
561
/// <param name="component">Safe-com wrapper representing the VBA component</param>
562
562
/// <param name="interfaceProgIDs">An array of interface names, preceeded by the library container name, e.g. "Excel._Worksheet"</param>
563
- /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched</param>
563
+ /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched, or -1 if no match </param>
564
564
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
565
565
public static bool DoesClassImplementInterface ( IVBComponent component , string [ ] interfaceProgIDs , out int matchedIndex )
566
566
{
@@ -572,7 +572,7 @@ public static bool DoesClassImplementInterface(IVBComponent component, string[]
572
572
/// </summary>
573
573
/// <param name="classTypeInfo">Low-level ITypeInfo wrapper representing the VBA project</param>
574
574
/// <param name="interfaceProgIDs">An array of interface names, preceeded by the library container name, e.g. "Excel._Worksheet"</param>
575
- /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched</param>
575
+ /// <param name="matchedIndex">on return indicates the index into interfaceProgIDs that matched, or -1 if no match </param>
576
576
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
577
577
public static bool DoesClassImplementInterface ( TypeInfoWrapper classTypeInfo , string [ ] interfaceProgIDs , out int matchedIndex )
578
578
{
@@ -651,7 +651,7 @@ public static bool DoesClassImplementInterface(TypeInfoWrapper classTypeInfo, Gu
651
651
/// <param name="projectName">VBA Project name, as declared in the VBE</param>
652
652
/// <param name="className">Document class name, as declared in the VBA project</param>
653
653
/// <param name="interfaceIIDs">An array of interface IIDs to check against</param>
654
- /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched</param>
654
+ /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched, or -1 if no match </param>
655
655
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
656
656
public static bool DoesClassImplementInterface ( IVBE ide , string projectName , string className , Guid [ ] interfaceIIDs , out int matchedIndex )
657
657
{
@@ -667,7 +667,7 @@ public static bool DoesClassImplementInterface(IVBE ide, string projectName, str
667
667
/// <param name="project">Safe-com wrapper representing the VBA project</param>
668
668
/// <param name="className">Document class name, as declared in the VBA project</param>
669
669
/// <param name="interfaceIIDs">An array of interface IIDs to check against</param>
670
- /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched</param>
670
+ /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched, or -1 if no match </param>
671
671
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
672
672
public static bool DoesClassImplementInterface ( IVBProject project , string className , Guid [ ] interfaceIIDs , out int matchedIndex )
673
673
{
@@ -683,7 +683,7 @@ public static bool DoesClassImplementInterface(IVBProject project, string classN
683
683
/// <param name="projectTypeLib">Low-level ITypeLib wrapper representing the VBA project</param>
684
684
/// <param name="className">Document class name, as declared in the VBA project</param>
685
685
/// <param name="interfaceIIDs">An array of interface IIDs to check against</param>
686
- /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched</param>
686
+ /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched, or -1 if no match </param>
687
687
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
688
688
public static bool DoesClassImplementInterface ( TypeLibWrapper projectTypeLib , string className , Guid [ ] interfaceIIDs , out int matchedIndex )
689
689
{
@@ -695,7 +695,7 @@ public static bool DoesClassImplementInterface(TypeLibWrapper projectTypeLib, st
695
695
/// </summary>
696
696
/// <param name="component">Safe-com wrapper representing the VBA component</param>
697
697
/// <param name="interfaceIIDs">An array of interface IIDs to check against</param>
698
- /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched</param>
698
+ /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched, or -1 if no match </param>
699
699
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
700
700
public static bool DoesClassImplementInterface ( IVBComponent component , Guid [ ] interfaceIIDs , out int matchedIndex )
701
701
{
@@ -707,7 +707,7 @@ public static bool DoesClassImplementInterface(IVBComponent component, Guid[] in
707
707
/// </summary>
708
708
/// <param name="classTypeInfo">Low-level ITypeInfo wrapper representing the VBA project</param>
709
709
/// <param name="interfaceIIDs">An array of interface IIDs to check against</param>
710
- /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched</param>
710
+ /// <param name="matchedIndex">on return indicates the index into interfaceIIDs that matched, or -1 if no match </param>
711
711
/// <returns>bool indicating whether the class does inherit one of the specified interfaces</returns>
712
712
public static bool DoesClassImplementInterface ( TypeInfoWrapper classTypeInfo , Guid [ ] interfaceIIDs , out int matchedIndex )
713
713
{
@@ -843,14 +843,14 @@ public static string GetDocumentClassControlType(TypeInfoWrapper documentClass,
843
843
{
844
844
return documentClass . GetSafeImplementedTypeInfo ( 0 ) . GetControlType ( controlName ) . GetProgID ( ) ;
845
845
}
846
-
846
+
847
847
/// <summary>
848
848
/// Retreives the TYPEFLAGS of a VBA component (e.g. module/class), providing flags like TYPEFLAG_FCANCREATE, TYPEFLAG_FPREDECLID
849
849
/// </summary>
850
850
/// <param name="ide">Safe-com wrapper representing the VBE</param>
851
851
/// <param name="projectName">The VBA project name</param>
852
852
/// <param name="componentName">The name of the component (module/class etc) to get flags for</param>
853
- /// <returns>bool indicating success/failure. </returns>
853
+ /// <returns>ComTypes.TYPEFLAGS flags from the ITypeInfo </returns>
854
854
public static ComTypes . TYPEFLAGS GetComponentTypeFlags ( IVBE ide , string projectName , string componentName )
855
855
{
856
856
using ( var typeLibs = new VBETypeLibsAccessor ( ide ) )
@@ -864,7 +864,7 @@ public static ComTypes.TYPEFLAGS GetComponentTypeFlags(IVBE ide, string projectN
864
864
/// </summary>
865
865
/// <param name="project">Safe-com wrapper representing the VBA project</param>
866
866
/// <param name="componentName">The name of the component (module/class etc) to get flags for</param>
867
- /// <returns>bool indicating success/failure. </returns>
867
+ /// <returns>ComTypes.TYPEFLAGS flags from the ITypeInfo </returns>
868
868
public static ComTypes . TYPEFLAGS GetComponentTypeFlags ( IVBProject project , string componentName )
869
869
{
870
870
using ( var typeLib = TypeLibWrapper . FromVBProject ( project ) )
@@ -878,7 +878,7 @@ public static ComTypes.TYPEFLAGS GetComponentTypeFlags(IVBProject project, strin
878
878
/// </summary>
879
879
/// <param name="projectTypeLib">Low-level ITypeLib wrapper representing the VBA project</param>
880
880
/// <param name="componentName">The name of the component (module/class etc) to get flags for</param>
881
- /// <returns>bool indicating success/failure. </returns>
881
+ /// <returns>ComTypes.TYPEFLAGS flags from the ITypeInfo </returns>
882
882
public static ComTypes . TYPEFLAGS GetComponentTypeFlags ( TypeLibWrapper projectTypeLib , string componentName )
883
883
{
884
884
return GetComponentTypeFlags ( projectTypeLib . TypeInfos . Get ( componentName ) ) ;
@@ -888,7 +888,7 @@ public static ComTypes.TYPEFLAGS GetComponentTypeFlags(TypeLibWrapper projectTyp
888
888
/// Retreives the TYPEFLAGS of a VBA component (e.g. module/class), providing flags like TYPEFLAG_FCANCREATE, TYPEFLAG_FPREDECLID
889
889
/// </summary>
890
890
/// <param name="component">Safe-com wrapper representing the VBA component to get flags for</param>
891
- /// <returns>bool indicating success/failure. </returns>
891
+ /// <returns>ComTypes.TYPEFLAGS flags from the ITypeInfo </returns>
892
892
public static ComTypes . TYPEFLAGS GetComponentTypeFlags ( IVBComponent component )
893
893
{
894
894
return GetComponentTypeFlags ( component . ParentProject , component . Name ) ;
@@ -898,7 +898,7 @@ public static ComTypes.TYPEFLAGS GetComponentTypeFlags(IVBComponent component)
898
898
/// Retreives the TYPEFLAGS of a VBA component (e.g. module/class), providing flags like TYPEFLAG_FCANCREATE, TYPEFLAG_FPREDECLID
899
899
/// </summary>
900
900
/// <param name="componentTypeInfo">Low-level ITypeInfo wrapper representing the VBA component to get flags for</param>
901
- /// <returns>bool indicating success/failure. </returns>
901
+ /// <returns>ComTypes.TYPEFLAGS flags from the ITypeInfo </returns>
902
902
public static ComTypes . TYPEFLAGS GetComponentTypeFlags ( TypeInfoWrapper componentTypeInfo )
903
903
{
904
904
return componentTypeInfo . Flags ;
0 commit comments