Struct CellArea

Struct CellArea

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

Reprezentuje obszar komórek.

public struct CellArea : IComparable

Implementuje

IComparable

Dziedziczone członkowie

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

Przykłady


//Utwórz obszar komórek
CellArea ca = new CellArea();
ca.StartRow = 0;
ca.EndRow = 0;
ca.StartColumn = 0;
ca.EndColumn = 0;

'Utwórz obszar komórek
Dim ca As CellArea = New CellArea()
ca.StartRow = 0
ca.EndRow = 0
ca.StartColumn = 0
ca.EndColumn = 0

Pola

EndColumn

Pobiera lub ustawia ostatnią kolumnę tego obszaru.

public int EndColumn

Wartość pola

int

EndRow

Pobiera lub ustawia ostatni wiersz tego obszaru.

public int EndRow

Wartość pola

int

StartColumn

Pobiera lub ustawia pierwszą kolumnę tego obszaru.

public int StartColumn

Wartość pola

int

StartRow

Pobiera lub ustawia pierwszy wiersz tego obszaru.

public int StartRow

Wartość pola

int

Metody

CompareTo(object)

Porównuje dwa obiekty CellArea według ich lewego górnego rogu.

public int CompareTo(object obj)

Parametry

obj object

Zwraca

int

Jeśli dwa rogi znajdują się w różnych wierszach, porównaj ich indeks wiersza. W przeciwnym razie porównaj ich indeks kolumny. Jeśli dwa rogi są takie same, zwróci 0.

CreateCellArea(int, int, int, int)

Tworzy obszar komórek.

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

Parametry

startRow int

Pierwszy wiersz.

startColumn int

Pierwsza kolumna.

endRow int

Ostatni wiersz.

endColumn int

Ostatnia kolumna.

Zwraca

CellArea

Zwraca Aspose.Cells.CellArea.

CreateCellArea(string, string)

Tworzy obszar komórek.

public static CellArea CreateCellArea(string startCellName, string endCellName)

Parametry

startCellName string

Lewy górny róg zakresu.

endCellName string

Prawy dolny róg zakresu.

Zwraca

CellArea

Zwraca Aspose.Cells.CellArea.

ToString()

Zwraca ciąg reprezentujący bieżący obiekt obszaru komórek.

public override string ToString()

Zwraca

string

 Polski