Struct CellArea

Struct CellArea

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Reprezentuje oblast buněk.

public struct CellArea : IComparable

Implementuje

IComparable

Děděné členy

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Příklady


//Vytvoření oblasti buněk
CellArea ca = new CellArea();
ca.StartRow = 0;
ca.EndRow = 0;
ca.StartColumn = 0;
ca.EndColumn = 0;

'Vytvoření oblasti buněk
Dim ca As CellArea = New CellArea()
ca.StartRow = 0
ca.EndRow = 0
ca.StartColumn = 0
ca.EndColumn = 0

Pole

EndColumn

Získává nebo nastavuje koncovou sloupec této oblasti.

public int EndColumn

Hodnota pole

int

EndRow

Získává nebo nastavuje koncovou řadu této oblasti.

public int EndRow

Hodnota pole

int

StartColumn

Získává nebo nastavuje počáteční sloupec této oblasti.

public int StartColumn

Hodnota pole

int

StartRow

Získává nebo nastavuje počáteční řadu této oblasti.

public int StartRow

Hodnota pole

int

Metody

CompareTo(object)

Porovná dvě objekty CellArea podle jejich levého horního rohu.

public int CompareTo(object obj)

Parametry

obj object

Návratová hodnota

int

Pokud jsou dva rohy v různých řadách, porovnejte jejich index řady. Jinak porovnejte jejich index sloupce. Pokud jsou dva rohy stejné, vrátí se 0.

CreateCellArea(int, int, int, int)

Vytvoří oblast buněk.

public static CellArea CreateCellArea(int startRow, int startColumn, int endRow, int endColumn)

Parametry

startRow int

Počáteční řada.

startColumn int

Počáteční sloupec.

endRow int

Koncová řada.

endColumn int

Koncový sloupec.

Návratová hodnota

CellArea

Vrátí Aspose.Cells.CellArea.

CreateCellArea(string, string)

Vytvoří oblast buněk.

public static CellArea CreateCellArea(string startCellName, string endCellName)

Parametry

startCellName string

Levý horní roh oblasti.

endCellName string

Pravý dolní roh oblasti.

Návratová hodnota

CellArea

Vrátí Aspose.Cells.CellArea.

ToString()

Vrátí řetězec představující aktuální objekt oblasti buněk.

public override string ToString()

Návratová hodnota

string

 Čeština