Class Sort
Represents a sort condition used in the Sort.
Inheritance
System.Object
Sort
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport
Assembly: FastReport.OpenSource.dll
Syntax
public class Sort : IFRSerializable
Constructors
Sort()
Initializes a new instance of the Sort class with default settings.
Declaration
public Sort()
Sort(String)
Initializes a new instance of the Sort class with specified expression.
Declaration
public Sort(string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | expression |
Sort(String, Boolean)
Initializes a new instance of the Sort class with specified expression and sort order.
Declaration
public Sort(string expression, bool descending)
Parameters
Type | Name | Description |
---|---|---|
System.String | expression | |
System.Boolean | descending |
Properties
Descending
Gets or sets a value indicating that sort must be performed in descending order.
Declaration
public bool Descending { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Expression
Gets or sets an expression used to sort data band rows.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This property can contain any valid expression.
Methods
Deserialize(FRReader)
Deserializes the class.
Declaration
public void Deserialize(FRReader reader)
Parameters
Type | Name | Description |
---|---|---|
FRReader | reader | Reader object. |
Remarks
This method is for internal use only.
Serialize(FRWriter)
Serializes the class.
Declaration
public void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Remarks
This method is for internal use only.