Files
Common-VS2019/SacsStandardData/Data/Excel/MsExcel.cs
T

1144 lines
20 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Sarand.Net.Standard.Data.Excel
{
//=======================================================================
// MS Excel constant definitions.
// Ref. namespace Microsoft.Office.Interop.Excel
//=======================================================================
//
// Summary:
// Specifies the file format when saving the spreadsheet.
public enum XlFileFormat
{
//
// Summary:
// Specifies a type of text format
xlCurrentPlatformText = -4158,
//
// Summary:
// Excel workbook format.
xlWorkbookNormal = -4143,
//
// Summary:
// Symbolic link format.
xlSYLK = 2,
//
// Summary:
// Lotus 1-2-3 format.
xlWKS = 4,
//
// Summary:
// Lotus 1-2-3 format.
xlWK1 = 5,
//
// Summary:
// Comma separated value.
xlCSV = 6,
//
// Summary:
// Dbase 2 format.
xlDBF2 = 7,
//
// Summary:
// Dbase 3 format.
xlDBF3 = 8,
//
// Summary:
// Data Interchange format.
xlDIF = 9,
//
// Summary:
// Dbase 4 format.
xlDBF4 = 11,
//
// Summary:
// Deprecated format.
xlWJ2WD1 = 14,
//
// Summary:
// Lotus 1-2-3 format.
xlWK3 = 15,
//
// Summary:
// Excel version 2.0.
xlExcel2 = 16,
//
// Summary:
// Excel template format.
xlTemplate = 17,
//
// Summary:
// Template 8
xlTemplate8 = 17,
//
// Summary:
// Microsoft Office Excel Add-In.
xlAddIn = 18,
//
// Summary:
// Microsoft Excel 97-2003 Add-In
xlAddIn8 = 18,
//
// Summary:
// Specifies a type of text format.
xlTextMac = 19,
//
// Summary:
// Specifies a type of text format.
xlTextWindows = 20,
//
// Summary:
// Specifies a type of text format.
xlTextMSDOS = 21,
//
// Summary:
// Comma separated value.
xlCSVMac = 22,
//
// Summary:
// Comma separated value.
xlCSVWindows = 23,
//
// Summary:
// Comma separated value.
xlCSVMSDOS = 24,
//
// Summary:
// Deprecated format.
xlIntlMacro = 25,
//
// Summary:
// Microsoft Office Excel Add-In international format.
xlIntlAddIn = 26,
//
// Summary:
// Excel version 2.0 far east.
xlExcel2FarEast = 27,
//
// Summary:
// Microsoft Works 2.0 format
xlWorks2FarEast = 28,
//
// Summary:
// Excel version 3.0.
xlExcel3 = 29,
//
// Summary:
// Lotus 1-2-3 format.
xlWK1FMT = 30,
//
// Summary:
// Lotus 1-2-3 format.
xlWK1ALL = 31,
//
// Summary:
// Lotus 1-2-3 format.
xlWK3FM3 = 32,
//
// Summary:
// Excel version 4.0.
xlExcel4 = 33,
//
// Summary:
// Quattro Pro format.
xlWQ1 = 34,
//
// Summary:
// Excel version 4.0. Workbook format.
xlExcel4Workbook = 35,
//
// Summary:
// Specifies a type of text format.
xlTextPrinter = 36,
//
// Summary:
// Lotus 1-2-3 format.
xlWK4 = 38,
//
// Summary:
// Excel version 5.0.
xlExcel5 = 39,
//
// Summary:
// Excel 95.
xlExcel7 = 39,
//
// Summary:
// Deprecated format.
xlWJ3 = 40,
//
// Summary:
// Deprecated format.
xlWJ3FJ3 = 41,
//
// Summary:
// Specifies a type of text format.
xlUnicodeText = 42,
//
// Summary:
// Excel version 95 and 97.
xlExcel9795 = 43,
//
// Summary:
// Web page format.
xlHtml = 44,
//
// Summary:
// MHT format.
xlWebArchive = 45,
//
// Summary:
// Excel Spreadsheet format.
xlXMLSpreadsheet = 46,
//
// Summary:
// Excel12
xlExcel12 = 50,
//
// Summary:
// Open XML Workbook
xlOpenXMLWorkbook = 51,
//
// Summary:
// Workbook default
xlWorkbookDefault = 51,
//
// Summary:
// Open XML Workbook Macro Enabled
xlOpenXMLWorkbookMacroEnabled = 52,
//
// Summary:
// Open XML Template Macro Enabled
xlOpenXMLTemplateMacroEnabled = 53,
//
// Summary:
// Open XML Template
xlOpenXMLTemplate = 54,
//
// Summary:
// Open XML Add-In
xlOpenXMLAddIn = 55,
//
// Summary:
// Excel8
xlExcel8 = 56,
//
// Summary:
// OpenDocument Spreadsheet
xlOpenDocumentSpreadsheet = 60
}
//=======================================================================
//
// Summary:
// Specifies the page orientation when the worksheet is printed.
public enum XlPageOrientation
{
//
// Summary:
// Portrait mode.
xlPortrait = 1,
//
// Summary:
// Landscape mode.
xlLandscape = 2
}
//=======================================================================
//
// Summary:
// Specifies the weight of the border around a range.
public enum XlBorderWeight
{
//
// Summary:
// Medium.
xlMedium = -4138,
//
// Summary:
// Hairline (thinnest border).
xlHairline = 1,
//
// Summary:
// Thin.
xlThin = 2,
//
// Summary:
// Thick (widest border).
xlThick = 4
}
//=======================================================================
//
// Summary:
// Specifies the line style for the border.
public enum XlLineStyle
{
//
// Summary:
// No line.
xlLineStyleNone = -4142,
//
// Summary:
// Double line.
xlDouble = -4119,
//
// Summary:
// Dotted line.
xlDot = -4118,
//
// Summary:
// Dashed line.
xlDash = -4115,
//
// Summary:
// Continuous line.
xlContinuous = 1,
//
// Summary:
// Alternating dashes and dots.
xlDashDot = 4,
//
// Summary:
// Dash followed by two dots.
xlDashDotDot = 5,
//
// Summary:
// Slanted dashes.
xlSlantDashDot = 13
}
//=======================================================================
//
// Summary:
// Specifies the type of underline applied to a font.
public enum XlUnderlineStyle
{
//
// Summary:
// No underlining.
xlUnderlineStyleNone = -4142,
//
// Summary:
// Double thick underline.
xlUnderlineStyleDouble = -4119,
//
// Summary:
// Single underlining.
xlUnderlineStyleSingle = 2,
//
// Summary:
// Not supported.
xlUnderlineStyleSingleAccounting = 4,
//
// Summary:
// Two thin underlines placed close together.
xlUnderlineStyleDoubleAccounting = 5
}
//=======================================================================
//
// Summary:
// Specifies the horizontal alignment for the object.
public enum XlHAlign
{
//
// Summary:
// Right.
xlHAlignRight = -4152,
//
// Summary:
// Left.
xlHAlignLeft = -4131,
//
// Summary:
// Justify.
xlHAlignJustify = -4130,
//
// Summary:
// Distribute.
xlHAlignDistributed = -4117,
//
// Summary:
// Center.
xlHAlignCenter = -4108,
//
// Summary:
// Align according to data type.
xlHAlignGeneral = 1,
//
// Summary:
// Fill.
xlHAlignFill = 5,
//
// Summary:
// Center across selection.
xlHAlignCenterAcrossSelection = 7
}
//=======================================================================
//
// Summary:
// Specifies the vertical alignment for the object.
public enum XlVAlign
{
//
// Summary:
// Top.
xlVAlignTop = -4160,
//
// Summary:
// Justify.
xlVAlignJustify = -4130,
//
// Summary:
// Distributed.
xlVAlignDistributed = -4117,
//
// Summary:
// Center.
xlVAlignCenter = -4108,
//
// Summary:
// Bottom.
xlVAlignBottom = -4107
}
//=======================================================================
//
// Summary:
// Specifies the border to be retrieved.
public enum XlBordersIndex
{
//
// Summary:
// Border running from the upper left-hand corner to the lower right of each cell
// in the range.
xlDiagonalDown = 5,
//
// Summary:
// Border running from the lower left-hand corner to the upper right of each cell
// in the range.
xlDiagonalUp = 6,
//
// Summary:
// Border at the left-hand edge of the range.
xlEdgeLeft = 7,
//
// Summary:
// Border at the top of the range.
xlEdgeTop = 8,
//
// Summary:
// Border at the bottom of the range.
xlEdgeBottom = 9,
//
// Summary:
// Border at the right-hand edge of the range.
xlEdgeRight = 10,
//
// Summary:
// Vertical borders for all the cells in the range except borders on the outside
// of the range.
xlInsideVertical = 11,
//
// Summary:
// Horizontal borders for all cells in the range except borders on the outside of
// the range.
xlInsideHorizontal = 12
}
//=======================================================================
//
// Summary:
// Specifies the interior pattern of a chart or interior object.
public enum XlPattern
{
//
// Summary:
// Dark vertical bars.
xlPatternVertical = -4166,
//
// Summary:
// Dark diagonal lines running from the lower left to the upper right.
xlPatternUp = -4162,
//
// Summary:
// No pattern.
xlPatternNone = -4142,
//
// Summary:
// Dark horizontal lines.
xlPatternHorizontal = -4128,
//
// Summary:
// 75% gray.
xlPatternGray75 = -4126,
//
// Summary:
// 50% gray.
xlPatternGray50 = -4125,
//
// Summary:
// 25% gray.
xlPatternGray25 = -4124,
//
// Summary:
// Dark diagonal lines running from the upper left to the lower right.
xlPatternDown = -4121,
//
// Summary:
// Excel controls the pattern.
xlPatternAutomatic = -4105,
//
// Summary:
// Solid color.
xlPatternSolid = 1,
//
// Summary:
// Checkerboard.
xlPatternChecker = 9,
//
// Summary:
// 75% dark moiré.
xlPatternSemiGray75 = 10,
//
// Summary:
// Light horizontal lines.
xlPatternLightHorizontal = 11,
//
// Summary:
// Light vertical bars.
xlPatternLightVertical = 12,
//
// Summary:
// Light diagonal lines running from the upper left to the lower right.
xlPatternLightDown = 13,
//
// Summary:
// Light diagonal lines running from the lower left to the upper right.
xlPatternLightUp = 14,
//
// Summary:
// Grid.
xlPatternGrid = 15,
//
// Summary:
// Criss-cross lines.
xlPatternCrissCross = 16,
//
// Summary:
// 16% gray.
xlPatternGray16 = 17,
//
// Summary:
// 8% gray.
xlPatternGray8 = 18,
//
xlPatternLinearGradient = 4000,
//
xlPatternRectangularGradient = 4001
}
//=======================================================================
//
// Summary:
// Specifies the color of a selected feature such as border, font, or fill.
public enum XlColorIndex
{
//
// Summary:
// No color.
xlColorIndexNone = -4142,
//
// Summary:
// Automatic color.
xlColorIndexAutomatic = -4105
}
//=======================================================================
//
// Summary:
// Specifies the RGB color.
public enum XlRgbColor
{
//
// Summary:
// Black
rgbBlack = 0,
//
// Summary:
// Maroon
rgbMaroon = 128,
//
// Summary:
// Dark Red
rgbDarkRed = 139,
//
// Summary:
// Red
rgbRed = 255,
//
// Summary:
// Orange Red
rgbOrangeRed = 17919,
//
// Summary:
// Dark Green
rgbDarkGreen = 25600,
//
// Summary:
// Green
rgbGreen = 32768,
//
// Summary:
// Olive
rgbOlive = 32896,
//
// Summary:
// Dark Orange
rgbDarkOrange = 36095,
//
// Summary:
// Orange
rgbOrange = 42495,
//
// Summary:
// Gold
rgbGold = 55295,
//
// Summary:
// Lawn Green
rgbLawnGreen = 64636,
//
// Summary:
// Lime
rgbLime = 65280,
//
// Summary:
// Chartreuse
rgbChartreuse = 65407,
//
// Summary:
// Yellow
rgbYellow = 65535,
//
// Summary:
// Dark Goldenrod
rgbDarkGoldenrod = 755384,
//
// Summary:
// Goldenrod
rgbGoldenrod = 2139610,
//
// Summary:
// Fire Brick
rgbFireBrick = 2237106,
//
// Summary:
// Forest Green
rgbForestGreen = 2263842,
//
// Summary:
// Olive Drab
rgbOliveDrab = 2330219,
//
// Summary:
// Brown
rgbBrown = 2763429,
//
// Summary:
// Sienna
rgbSienna = 2970272,
//
// Summary:
// Dark Olive Green
rgbDarkOliveGreen = 3107669,
//
// Summary:
// Green Yellow
rgbGreenYellow = 3145645,
//
// Summary:
// Lime Green
rgbLimeGreen = 3329330,
//
// Summary:
// Yellow Green
rgbYellowGreen = 3329434,
//
// Summary:
// Crimson
rgbCrimson = 3937500,
//
// Summary:
// Peru
rgbPeru = 4163021,
//
// Summary:
// Tomato
rgbTomato = 4678655,
//
// Summary:
// Dark Slate Gray
rgbDarkSlateGray = 5197615,
//
// Summary:
// Dark Slate Grey
rgbDarkSlateGrey = 5197615,
//
// Summary:
// Coral
rgbCoral = 5275647,
//
// Summary:
// Sea Green
rgbSeaGreen = 5737262,
//
// Summary:
// Indian Red
rgbIndianRed = 6053069,
//
// Summary:
// Sandy Brown
rgbSandyBrown = 6333684,
//
// Summary:
// Dim Gray
rgbDimGray = 6908265,
//
// Summary:
// Dim Grey
rgbDimGrey = 6908265,
//
// Summary:
// Dark Khaki
rgbDarkKhaki = 7059389,
//
// Summary:
// Pale Goldenrod
rgbPaleGoldenrod = 7071982,
//
// Summary:
// Midnight Blue
rgbMidnightBlue = 7346457,
//
// Summary:
// Medium Sea Green
rgbMediumSeaGreen = 7451452,
//
// Summary:
// Salmon
rgbSalmon = 7504122,
//
// Summary:
// Dark Salmon
rgbDarkSalmon = 8034025,
//
// Summary:
// Light Salmon
rgbLightSalmon = 8036607,
//
// Summary:
// Spring Green
rgbSpringGreen = 8388352,
//
// Summary:
// Navy
rgbNavy = 8388608,
//
// Summary:
// Navy Blue
rgbNavyBlue = 8388608,
//
// Summary:
// Purple
rgbPurple = 8388736,
//
// Summary:
// Teal
rgbTeal = 8421376,
//
// Summary:
// Gray
rgbGray = 8421504,
//
// Summary:
// Grey
rgbGrey = 8421504,
//
// Summary:
// Light Coral
rgbLightCoral = 8421616,
//
// Summary:
// Indigo
rgbIndigo = 8519755,
//
// Summary:
// Medium Violet Red
rgbMediumVioletRed = 8721863,
//
// Summary:
// Burly Wood
rgbBurlyWood = 8894686,
//
// Summary:
// Dark Blue
rgbDarkBlue = 9109504,
//
// Summary:
// Dark Magenta
rgbDarkMagenta = 9109643,
//
// Summary:
// Dark Slate Blue
rgbDarkSlateBlue = 9125192,
//
// Summary:
// Dark Cyan
rgbDarkCyan = 9145088,
//
// Summary:
// Light Cyan
rgbLightCyan = 9145088,
//
// Summary:
// Tan
rgbTan = 9221330,
//
// Summary:
// Khaki
rgbKhaki = 9234160,
//
// Summary:
// Rosy Brown
rgbRosyBrown = 9408444,
//
// Summary:
// Dark Sea Green
rgbDarkSeaGreen = 9419919,
//
// Summary:
// Slate Gray
rgbSlateGray = 9470064,
//
rgbSlateGrey = 9470064,
//
// Summary:
// Light Green
rgbLightGreen = 9498256,
//
// Summary:
// Deep Pink
rgbDeepPink = 9639167,
//
// Summary:
// Pale Violet Red
rgbPaleVioletRed = 9662683,
//
// Summary:
// Pale Green
rgbPaleGreen = 10025880,
//
// Summary:
// Light Slate Gray
rgbLightSlateGray = 10061943,
//
rgbLightSlateGrey = 10061943,
//
// Summary:
// Medium Spring Green
rgbMediumSpringGreen = 10156544,
//
// Summary:
// Cadet Blue
rgbCadetBlue = 10526303,
//
// Summary:
// Dark Gray
rgbDarkGray = 11119017,
//
// Summary:
// Dark Grey
rgbDarkGrey = 11119017,
//
// Summary:
// Light Sea Green
rgbLightSeaGreen = 11186720,
//
// Summary:
// Medium Aquamarine
rgbMediumAquamarine = 11206502,
//
// Summary:
// Navajo White
rgbNavajoWhite = 11394815,
//
// Summary:
// Wheat
rgbWheat = 11788021,
//
// Summary:
// Hot Pink
rgbHotPink = 11823615,
//
// Summary:
// Steel Blue
rgbSteelBlue = 11829830,
//
// Summary:
// Moccasin
rgbMoccasin = 11920639,
//
// Summary:
// Peach Puff
rgbPeachPuff = 12180223,
//
// Summary:
// Silver
rgbSilver = 12632256,
//
// Summary:
// Light Pink
rgbLightPink = 12695295,
//
// Summary:
// Bisque
rgbBisque = 12903679,
//
// Summary:
// Pink
rgbPink = 13353215,
//
// Summary:
// Dark Orchid
rgbDarkOrchid = 13382297,
//
// Summary:
// Medium Turquoise
rgbMediumTurquoise = 13422920,
//
// Summary:
// Medium Blue
rgbMediumBlue = 13434880,
//
// Summary:
// Slate Blue
rgbSlateBlue = 13458026,
//
// Summary:
// Blanched Almond
rgbBlanchedAlmond = 13495295,
//
// Summary:
// Lemon Chiffon
rgbLemonChiffon = 13499135,
//
// Summary:
// Turquoise
rgbTurquoise = 13688896,
//
// Summary:
// Dark Turquoise
rgbDarkTurquoise = 13749760,
//
// Summary:
// LightGoldenrodYellow
rgbLightGoldenrodYellow = 13826810,
//
// Summary:
// Dark Violet
rgbDarkViolet = 13828244,
//
// Summary:
// Medium Orchid
rgbMediumOrchid = 13850042,
//
// Summary:
// Light Gray
rgbLightGray = 13882323,
//
// Summary:
// Light Grey
rgbLightGrey = 13882323,
//
// Summary:
// Aquamarine
rgbAquamarine = 13959039,
//
// Summary:
// Papaya Whip
rgbPapayaWhip = 14020607,
//
// Summary:
// Orchid
rgbOrchid = 14053594,
//
// Summary:
// Antique White
rgbAntiqueWhite = 14150650,
//
// Summary:
// Thistle
rgbThistle = 14204888,
//
// Summary:
// Medium Purple
rgbMediumPurple = 14381203,
//
// Summary:
// Gainsboro
rgbGainsboro = 14474460,
//
// Summary:
// Beige
rgbBeige = 14480885,
//
// Summary:
// Cornsilk
rgbCornsilk = 14481663,
//
// Summary:
// Plum
rgbPlum = 14524637,
//
// Summary:
// Light Steel Blue
rgbLightSteelBlue = 14599344,
//
// Summary:
// Light Yellow
rgbLightYellow = 14745599,
//
// Summary:
// Royal Blue
rgbRoyalBlue = 14772545,
//
// Summary:
// Misty Rose
rgbMistyRose = 14804223,
//
// Summary:
// Blue Violet
rgbBlueViolet = 14822282,
//
// Summary:
// Light Blue
rgbLightBlue = 15128749,
//
// Summary:
// Powder Blue
rgbPowderBlue = 15130800,
//
// Summary:
// Linen
rgbLinen = 15134970,
//
// Summary:
// Old Lace
rgbOldLace = 15136253,
//
// Summary:
// Sky Blue
rgbSkyBlue = 15453831,
//
// Summary:
// Cornflower Blue
rgbCornflowerBlue = 15570276,
//
// Summary:
// Medium Slate Blue
rgbMediumSlateBlue = 15624315,
//
// Summary:
// Violet
rgbViolet = 15631086,
//
// Summary:
// Pale Turquoise
rgbPaleTurquoise = 15658671,
//
// Summary:
// Seashell
rgbSeashell = 15660543,
//
// Summary:
// Floral White
rgbFloralWhite = 15792895,
//
// Summary:
// Honeydew
rgbHoneydew = 15794160,
//
// Summary:
// Ivory
rgbIvory = 15794175,
//
// Summary:
// Lavender Blush
rgbLavenderBlush = 16118015,
//
// Summary:
// White Smoke
rgbWhiteSmoke = 16119285,
//
// Summary:
// Light Sky Blue
rgbLightSkyBlue = 16436871,
//
// Summary:
// Lavender
rgbLavender = 16443110,
//
// Summary:
// Snow
rgbSnow = 16448255,
//
// Summary:
// Mint Cream
rgbMintCream = 16449525,
//
// Summary:
// Blue
rgbBlue = 16711680,
//
// Summary:
// Fuchsia
rgbFuchsia = 16711935,
//
// Summary:
// Dodger Blue
rgbDodgerBlue = 16748574,
//
// Summary:
// Deep Sky Blue
rgbDeepSkyBlue = 16760576,
//
// Summary:
// Alice Blue
rgbAliceBlue = 16775408,
//
// Summary:
// Ghost White
rgbGhostWhite = 16775416,
//
// Summary:
// Aqua
rgbAqua = 16776960,
//
// Summary:
// Azure
rgbAzure = 16777200,
//
// Summary:
// White
rgbWhite = 16777215
}
//=======================================================================
}