Enum DefaultEditLanguage

DefaultEditLanguage enumeration

Represents the default edit language.

public enum DefaultEditLanguage

Values

NameValueDescription
Auto0Represents auto detecting edit language according to the text itself.
English1Represents English language.
CJK2Represents Chinese, Japanese, Korean language.

Examples

[C#]

namespace Demos
{
    using Aspose.Cells;
    using System;

    public class DefaultEditLanguageDemo
    {
        public static void DefaultEditLanguageExample()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Create AutoFitterOptions and set DefaultEditLanguage
            AutoFitterOptions autoFitterOptions = new AutoFitterOptions();
            autoFitterOptions.DefaultEditLanguage = DefaultEditLanguage.CJK;

            // Apply auto fit rows with the specified options
            worksheet.AutoFitRows(autoFitterOptions);

            // Save the workbook
            workbook.Save("DefaultEditLanguageExample.xlsx");
            workbook.Save("DefaultEditLanguageExample.pdf");

            // Output the set DefaultEditLanguage to the console
            Console.WriteLine("Default Edit Language set to: " + autoFitterOptions.DefaultEditLanguage);
        }
    }
}

See Also