|
| 1 | +// Copyright 2025 Cisco Systems, Inc. All rights reserved. |
| 2 | +// Licensed under MIT-style license (see LICENSE.txt file). |
| 3 | +// |
| 4 | +// Generated code file by Claude Haiku 4.5 |
| 5 | +// |
| 6 | + |
| 7 | +using System; |
| 8 | +using NetRuntimeSystem = System; |
| 9 | +using System.ComponentModel; |
| 10 | +using NetOffice.Attributes; |
| 11 | + |
| 12 | +namespace NetOffice.OfficeApi |
| 13 | +{ |
| 14 | + /// <summary> |
| 15 | + /// DispatchInterface LabelInfo |
| 16 | + /// SupportByVersion Office, 16 |
| 17 | + /// </summary> |
| 18 | + /// <remarks> |
| 19 | + /// Represents the label information data object. |
| 20 | + /// <para>The LabelInfo object can be passed to SetLabel method of SensitivityLabel object.</para> |
| 21 | + /// <para>Docs: <see href="https://learn.microsoft.com/en-us/office/vba/api/office.labelinfo"/></para> |
| 22 | + /// </remarks> |
| 23 | + [SupportByVersion("Office", 16)] |
| 24 | + [EntityType(EntityType.IsDispatchInterface)] |
| 25 | + public class LabelInfo : _IMsoDispObj |
| 26 | + { |
| 27 | + #pragma warning disable |
| 28 | + |
| 29 | + #region Type Information |
| 30 | + |
| 31 | + /// <summary> |
| 32 | + /// Instance Type |
| 33 | + /// </summary> |
| 34 | + [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] |
| 35 | + public override Type InstanceType |
| 36 | + { |
| 37 | + get |
| 38 | + { |
| 39 | + return LateBindingApiWrapperType; |
| 40 | + } |
| 41 | + } |
| 42 | + |
| 43 | + private static Type _type; |
| 44 | + |
| 45 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 46 | + public static Type LateBindingApiWrapperType |
| 47 | + { |
| 48 | + get |
| 49 | + { |
| 50 | + if (null == _type) |
| 51 | + _type = typeof(LabelInfo); |
| 52 | + return _type; |
| 53 | + } |
| 54 | + } |
| 55 | + |
| 56 | + #endregion |
| 57 | + |
| 58 | + #region Ctor |
| 59 | + |
| 60 | + /// <param name="factory">current used factory core</param> |
| 61 | + /// <param name="parentObject">object there has created the proxy</param> |
| 62 | + /// <param name="proxyShare">proxy share instead if com proxy</param> |
| 63 | + public LabelInfo(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) |
| 64 | + { |
| 65 | + } |
| 66 | + |
| 67 | + ///<param name="factory">current used factory core</param> |
| 68 | + ///<param name="parentObject">object there has created the proxy</param> |
| 69 | + ///<param name="comProxy">inner wrapped COM proxy</param> |
| 70 | + public LabelInfo(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) |
| 71 | + { |
| 72 | + |
| 73 | + } |
| 74 | + |
| 75 | + ///<param name="parentObject">object there has created the proxy</param> |
| 76 | + ///<param name="comProxy">inner wrapped COM proxy</param> |
| 77 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 78 | + public LabelInfo(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) |
| 79 | + { |
| 80 | + } |
| 81 | + |
| 82 | + ///<param name="factory">current used factory core</param> |
| 83 | + ///<param name="parentObject">object there has created the proxy</param> |
| 84 | + ///<param name="comProxy">inner wrapped COM proxy</param> |
| 85 | + ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> |
| 86 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 87 | + public LabelInfo(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) |
| 88 | + { |
| 89 | + |
| 90 | + } |
| 91 | + |
| 92 | + ///<param name="parentObject">object there has created the proxy</param> |
| 93 | + ///<param name="comProxy">inner wrapped COM proxy</param> |
| 94 | + ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> |
| 95 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 96 | + public LabelInfo(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) |
| 97 | + { |
| 98 | + } |
| 99 | + |
| 100 | + ///<param name="replacedObject">object to replaced. replacedObject are not usable after this action</param> |
| 101 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 102 | + public LabelInfo(ICOMObject replacedObject) : base(replacedObject) |
| 103 | + { |
| 104 | + } |
| 105 | + |
| 106 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 107 | + public LabelInfo() : base() |
| 108 | + { |
| 109 | + } |
| 110 | + |
| 111 | + /// <param name="progId">registered progID</param> |
| 112 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
| 113 | + public LabelInfo(string progId) : base(progId) |
| 114 | + { |
| 115 | + } |
| 116 | + |
| 117 | + #endregion |
| 118 | + |
| 119 | + #region Properties |
| 120 | + |
| 121 | + /// <summary> |
| 122 | + /// SupportByVersion Office 16 |
| 123 | + /// Get/Set |
| 124 | + /// </summary> |
| 125 | + /// <remarks> Gets or sets the GUID that identifies the action to be performed. </remarks> |
| 126 | + [SupportByVersion("Office", 16)] |
| 127 | + public string ActionId |
| 128 | + { |
| 129 | + get |
| 130 | + { |
| 131 | + return Factory.ExecuteStringPropertyGet(this, "ActionId"); |
| 132 | + } |
| 133 | + set |
| 134 | + { |
| 135 | + Factory.ExecuteValuePropertySet(this, "ActionId", value); |
| 136 | + } |
| 137 | + } |
| 138 | + |
| 139 | + /// <summary> |
| 140 | + /// SupportByVersion Office 16 |
| 141 | + /// Get/Set |
| 142 | + /// </summary> |
| 143 | + /// <remarks> Gets or sets how the label was assigned. </remarks> |
| 144 | + [SupportByVersion("Office", 16)] |
| 145 | + public NetOffice.OfficeApi.Enums.MsoAssignmentMethod AssignmentMethod |
| 146 | + { |
| 147 | + get |
| 148 | + { |
| 149 | + return Factory.ExecuteEnumPropertyGet<NetOffice.OfficeApi.Enums.MsoAssignmentMethod>(this, "AssignmentMethod"); |
| 150 | + } |
| 151 | + set |
| 152 | + { |
| 153 | + Factory.ExecuteEnumPropertySet(this, "AssignmentMethod", value); |
| 154 | + } |
| 155 | + } |
| 156 | + |
| 157 | + /// <summary> |
| 158 | + /// SupportByVersion Office 16 |
| 159 | + /// Get/Set |
| 160 | + /// </summary> |
| 161 | + /// <remarks> Gets or sets content markings value. </remarks> |
| 162 | + [SupportByVersion("Office", 16)] |
| 163 | + public Int32 ContentBits |
| 164 | + { |
| 165 | + get |
| 166 | + { |
| 167 | + return Factory.ExecuteInt32PropertyGet(this, "ContentBits"); |
| 168 | + } |
| 169 | + set |
| 170 | + { |
| 171 | + Factory.ExecuteValuePropertySet(this, "ContentBits", value); |
| 172 | + } |
| 173 | + } |
| 174 | + |
| 175 | + /// <summary> |
| 176 | + /// SupportByVersion Office 16 |
| 177 | + /// Get/Set |
| 178 | + /// </summary> |
| 179 | + /// <remarks> Gets or sets whether the label is enabled. </remarks> |
| 180 | + [SupportByVersion("Office", 16)] |
| 181 | + public bool IsEnabled |
| 182 | + { |
| 183 | + get |
| 184 | + { |
| 185 | + return Factory.ExecuteBoolPropertyGet(this, "IsEnabled"); |
| 186 | + } |
| 187 | + set |
| 188 | + { |
| 189 | + Factory.ExecuteValuePropertySet(this, "IsEnabled", value); |
| 190 | + } |
| 191 | + } |
| 192 | + |
| 193 | + /// <summary> |
| 194 | + /// SupportByVersion Office 16 |
| 195 | + /// Get/Set |
| 196 | + /// </summary> |
| 197 | + /// <remarks> Gets or sets justification text. Required when downgrading labels. </remarks> |
| 198 | + [SupportByVersion("Office", 16)] |
| 199 | + public string Justification |
| 200 | + { |
| 201 | + get |
| 202 | + { |
| 203 | + return Factory.ExecuteStringPropertyGet(this, "Justification"); |
| 204 | + } |
| 205 | + set |
| 206 | + { |
| 207 | + Factory.ExecuteValuePropertySet(this, "Justification", value); |
| 208 | + } |
| 209 | + } |
| 210 | + |
| 211 | + /// <summary> |
| 212 | + /// SupportByVersion Office 16 |
| 213 | + /// Get/Set |
| 214 | + /// </summary> |
| 215 | + /// <remarks> Gets or sets the GUID of the sensitivity label. </remarks> |
| 216 | + [SupportByVersion("Office", 16)] |
| 217 | + public string LabelId |
| 218 | + { |
| 219 | + get |
| 220 | + { |
| 221 | + return Factory.ExecuteStringPropertyGet(this, "LabelId"); |
| 222 | + } |
| 223 | + set |
| 224 | + { |
| 225 | + Factory.ExecuteValuePropertySet(this, "LabelId", value); |
| 226 | + } |
| 227 | + } |
| 228 | + |
| 229 | + /// <summary> |
| 230 | + /// SupportByVersion Office 16 |
| 231 | + /// Get/Set |
| 232 | + /// </summary> |
| 233 | + /// <remarks> Gets or sets the display name of the label. </remarks> |
| 234 | + [SupportByVersion("Office", 16)] |
| 235 | + public string LabelName |
| 236 | + { |
| 237 | + get |
| 238 | + { |
| 239 | + return Factory.ExecuteStringPropertyGet(this, "LabelName"); |
| 240 | + } |
| 241 | + set |
| 242 | + { |
| 243 | + Factory.ExecuteValuePropertySet(this, "LabelName", value); |
| 244 | + } |
| 245 | + } |
| 246 | + |
| 247 | + /// <summary> |
| 248 | + /// SupportByVersion Office 16 |
| 249 | + /// Get/Set |
| 250 | + /// </summary> |
| 251 | + /// <remarks> Gets or sets the date when the label was set. </remarks> |
| 252 | + [SupportByVersion("Office", 16)] |
| 253 | + public System.DateTime SetDate |
| 254 | + { |
| 255 | + get |
| 256 | + { |
| 257 | + object result = Factory.ExecuteVariantPropertyGet(this, "SetDate"); |
| 258 | + if (result is System.DateTime) |
| 259 | + return (System.DateTime)result; |
| 260 | + else |
| 261 | + return (System.DateTime)System.Convert.ChangeType(result, typeof(System.DateTime)); |
| 262 | + } |
| 263 | + set |
| 264 | + { |
| 265 | + Factory.ExecuteValuePropertySet(this, "SetDate", value); |
| 266 | + } |
| 267 | + } |
| 268 | + |
| 269 | + /// <summary> |
| 270 | + /// SupportByVersion Office 16 |
| 271 | + /// Get/Set |
| 272 | + /// </summary> |
| 273 | + /// <remarks> Gets or sets the GUID of the SharePoint site. </remarks> |
| 274 | + [SupportByVersion("Office", 16)] |
| 275 | + public string SiteId |
| 276 | + { |
| 277 | + get |
| 278 | + { |
| 279 | + return Factory.ExecuteStringPropertyGet(this, "SiteId"); |
| 280 | + } |
| 281 | + set |
| 282 | + { |
| 283 | + Factory.ExecuteValuePropertySet(this, "SiteId", value); |
| 284 | + } |
| 285 | + } |
| 286 | + |
| 287 | + #endregion |
| 288 | + |
| 289 | + #region Methods |
| 290 | + |
| 291 | + #endregion |
| 292 | + |
| 293 | + #pragma warning restore |
| 294 | + } |
| 295 | +} |
0 commit comments