Skip to content

Commit 5b4ed1d

Browse files
committed
Add the CreateLabelInfo() method to SensitivityLabel class
1 parent 9f8d41b commit 5b4ed1d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Source/Office/DispatchInterfaces/SensitivityLabel.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ public SensitivityLabel(string progId) : base(progId)
122122

123123
#region Methods
124124

125+
/// <summary>
126+
/// SupportByVersion Office 16
127+
/// </summary>
128+
/// <remarks>
129+
/// Creates a new LabelInfo object that can be passed to SetLabel method.
130+
/// <para>Docs: <see href="https://learn.microsoft.com/en-us/office/vba/api/office.sensitivitylabel.createlabelinfo"/> </remarks>
131+
[SupportByVersion("Office", 16)]
132+
public NetOffice.OfficeApi.LabelInfo CreateLabelInfo()
133+
{
134+
return Factory.ExecuteKnownReferenceMethodGet<NetOffice.OfficeApi.LabelInfo>(this, "CreateLabelInfo", NetOffice.OfficeApi.LabelInfo.LateBindingApiWrapperType);
135+
}
136+
125137
/// <summary>
126138
/// SupportByVersion Office 16
127139
/// </summary>

0 commit comments

Comments
 (0)