Class WebExtensionProperty

WebExtensionProperty class

Represents an Office Add-in custom property.

public class WebExtensionProperty

Properties

NameDescription
Name { get; set; }Gets and set a custom property name.
Value { get; set; }Gets and sets a custom property value.

Examples

namespace AsposeCellsExamples
{
    using Aspose.Cells.WebExtensions;
    using System;

    public class WebExtensionsClassWebExtensionPropertyDemo
    {
        public static void Run()
        {
            try
            {
                // Create a new instance of WebExtensionProperty
                WebExtensionProperty property = (WebExtensionProperty)Activator.CreateInstance(typeof(WebExtensionProperty));
                
                // Set property values
                property.Name = "SampleProperty";
                property.Value = "SampleValue";
                
                // Display the property values
                Console.WriteLine($"Property Name: {property.Name}");
                Console.WriteLine($"Property Value: {property.Value}");
                
                Console.WriteLine("WebExtensionProperty demo completed successfully");
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Error in WebExtensionProperty demo: {ex.Message}");
            }
        }
    }
}

See Also