C# Класс SQLServerForExcel_Addin.Extensions.WorksheetExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AddChangedRow ( this sheet, Microsoft.Office.Interop.Excel changedRange ) : void
AddChangedRow ( this sheet, int col, int row ) : void
AddProperty ( this sheet, string propertyName, object propertyValue ) : Microsoft.Office.Interop.Excel.CustomProperty
ChangesToSql ( this sheet, string tableName, string primaryKeyName ) : string
ColumnName ( this sheet, int col ) : string
ConnectedToDb ( this sheet ) : bool

Checks whether the sheet has a primary key custom property and then return true or false indicating it is "connected" to a db table

GetProperty ( this sheet, string propertyName ) : Microsoft.Office.Interop.Excel.CustomProperty
PrimaryKey ( this sheet ) : string

Приватные методы

Метод Описание
ColumnIndexToColumnLetter ( int colIndex ) : string
ToSafeXml ( string xmlString ) : string
stripNonValidXMLCharacters ( string textIn ) : String

Описание методов

AddChangedRow() публичный статический Метод

public static AddChangedRow ( this sheet, Microsoft.Office.Interop.Excel changedRange ) : void
sheet this
changedRange Microsoft.Office.Interop.Excel
Результат void

AddChangedRow() публичный статический Метод

public static AddChangedRow ( this sheet, int col, int row ) : void
sheet this
col int
row int
Результат void

AddProperty() публичный статический Метод

public static AddProperty ( this sheet, string propertyName, object propertyValue ) : Microsoft.Office.Interop.Excel.CustomProperty
sheet this
propertyName string
propertyValue object
Результат Microsoft.Office.Interop.Excel.CustomProperty

ChangesToSql() публичный статический Метод

public static ChangesToSql ( this sheet, string tableName, string primaryKeyName ) : string
sheet this
tableName string
primaryKeyName string
Результат string

ColumnName() публичный статический Метод

public static ColumnName ( this sheet, int col ) : string
sheet this
col int
Результат string

ConnectedToDb() публичный статический Метод

Checks whether the sheet has a primary key custom property and then return true or false indicating it is "connected" to a db table
public static ConnectedToDb ( this sheet ) : bool
sheet this
Результат bool

GetProperty() публичный статический Метод

public static GetProperty ( this sheet, string propertyName ) : Microsoft.Office.Interop.Excel.CustomProperty
sheet this
propertyName string
Результат Microsoft.Office.Interop.Excel.CustomProperty

PrimaryKey() публичный статический Метод

public static PrimaryKey ( this sheet ) : string
sheet this
Результат string