C# 클래스 SQLServerForExcel_Addin.Extensions.WorksheetExtensions

파일 보기 프로젝트 열기: Pietervdw/SQLForExcel

공개 메소드들

메소드 설명
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