PowerTools SPREAD for ASP.NET 8.0J
GetSortIndicator メソッド (DefaultSheetAxisModel)

行または列のインデックス
指定した行または列のソートインジケータを取得します。
構文
'Declaration
 
Public Overrides Function GetSortIndicator( _
   ByVal index As Integer _
) As SortIndicator
public override SortIndicator GetSortIndicator( 
   int index
)

パラメータ

index
行または列のインデックス

戻り値の型

この列のソートインジケータの表示を指定するSortIndicator Enumeration
この例では、DefaultSheetAxisModelクラスの各メソッドの使い方を示します。
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
	If Me.IsPostBack Then Return
	
	Dim isheet As FarPoint.Web.Spread.Model.DefaultSheetAxisModel = FpSpread1.ActiveSheetView.ColumnAxisModel
	isheet.SetResizable(0, False)
	isheet.SetSize(0, 240)
	isheet.SetSortIndicator(0, FarPoint.Web.Spread.Model.SortIndicator.Descending)
	isheet.SetTag(0," Test")
	isheet.SetVisible(1, False)
	Dim i, i1, i2, i3 As Integer
	Dim b, b1, b2, b3 As Boolean
	Dim Str As Object
	Dim si As FarPoint.Web.Spread.Model.SortIndicator
	b = isheet.GetResizable(0)
	ListBox1.Items.Add(b.ToString())
	b1 = isheet.GetVisible(1)
	ListBox1.Items.Add(b1.ToString())
	i = isheet.GetSize(0)
	ListBox1.Items.Add(i.ToString())
	i1 = isheet.GetHashCode()
	ListBox1.Items.Add(i1.ToString())
	Str = isheet.GetTag(0)
	ListBox1.Items.Add(Str.ToString())
	si = isheet.GetSortIndicator(0)
	ListBox1.Items.Add(si.ToString())
	b2 = isheet.IsEmpty()
	ListBox1.Items.Add(b2.ToString())
	b3 = isheet.IsPropertySet(0, FarPoint.Web.Spread.Model.SheetAxisProperty.Size)
	ListBox1.Items.Add(b3.ToString())
End Sub
private void Page_Load(object sender, System.EventArgs e)
{
	if (this.IsPostBack) return;

	FarPoint.Web.Spread.Model.DefaultSheetAxisModel isheet = null;
	isheet = (FarPoint.Web.Spread.Model.DefaultSheetAxisModel)FpSpread1.ActiveSheetView.ColumnAxisModel;
	isheet.SetResizable(0, false);
	isheet.SetSize(0, 240);
	isheet.SetSortIndicator(0, FarPoint.Web.Spread.Model.SortIndicator.Descending);
	isheet.SetTag(0, "Test");
	isheet.SetVisible(1, false);
	int i, i1;
	bool b, b1, b2, b3;
	object str;
	FarPoint.Web.Spread.Model.SortIndicator si;
	b = isheet.GetResizable(0);
	ListBox1.Items.Add(b.ToString());
	b1 = isheet.GetVisible(1);
	ListBox1.Items.Add(b1.ToString());
	i = isheet.GetSize(0);
	ListBox1.Items.Add(i.ToString());
	i1 = isheet.GetHashCode();
	ListBox1.Items.Add(i1.ToString());
	str = isheet.GetTag(0);
	ListBox1.Items.Add(str.ToString());
	si = isheet.GetSortIndicator(0);
	ListBox1.Items.Add(si.ToString());
	b2 = isheet.IsEmpty();
	ListBox1.Items.Add(b2.ToString());
	b3 = isheet.IsPropertySet(0, FarPoint.Web.Spread.Model.SheetAxisProperty.Size);
	ListBox1.Items.Add(b3.ToString());
}
参照

DefaultSheetAxisModel クラス
DefaultSheetAxisModel メンバ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.