Class View
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a view in Project.
public class View : IComparable<view>
Inheritance
Derived
GanttChartView, TimelineView, UsageView
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
View()
Initializes a new instance of the Aspose.Tasks.View class.
public View()
View(ViewScreen)
Initializes a new instance of the Aspose.Tasks.View class.
public View(ViewScreen viewScreen)
Parameters
viewScreen
ViewScreen
The screen type for which the view can be displayed.
Properties
Filter
Gets or sets a filter used in a single view.
public Filter Filter { get; set; }
Property Value
Group
Gets or sets a group of the single view.
public Group Group { get; set; }
Property Value
HighlightFilter
Gets or sets a value indicating whether Microsoft Project highlights the filter for a single view.
public bool HighlightFilter { get; set; }
Property Value
Name
Gets or sets the name of a View object.
public string Name { get; set; }
Property Value
PageInfo
Gets an instance of the Aspose.Tasks.View.PageInfo class. Represents page setup data which is present in mpp file format.
public PageInfo PageInfo { get; }
Property Value
ParentProject
Gets the parent of the View object. Read-only Aspose.Tasks.Project.
public Project ParentProject { get; }
Property Value
Screen
Gets the screen type for the single view. Read-only Aspose.Tasks.ViewScreen.
public ViewScreen Screen { get; }
Property Value
ShowInMenu
Gets or sets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon.
public bool ShowInMenu { get; set; }
Property Value
Table
Gets or sets a table of the single view.
public Table Table { get; set; }
Property Value
Type
Gets the type of item in the single view, such as tasks or resources. Read-only Aspose.Tasks.ItemType.
public ItemType Type { get; }
Property Value
Uid
Gets the unique identifier of a view.
public int Uid { get; }
Property Value
VisualObjectsPlacements
Gets a collection of objects representing placement and appearance of Aspose.Tasks.OleObject in the view.
public IEnumerable<visualobjectplacement> VisualObjectsPlacements { get; }
Property Value
IEnumerable<VisualObjectPlacement>
Methods
CompareTo(View)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(View other)
Parameters
other
View
the specified View object to compare this instance to.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other
in the sort order. Zero This instance occurs in the same position in the sort order as other
. Greater than zero This instance follows other
in the sort order.
Equals(object)
Returns a value indicating whether this instance is equal to a specified object.
public override bool Equals(object obj)
Parameters
obj
object
The object to compare with this instance.
Returns
True if the specified object is a View that has the same Uid value as this instance; otherwise, false.
GetHashCode()
Returns a hash code value for the instance of the Aspose.Tasks.Resource class.
public override int GetHashCode()
Returns
returns a hash code value for this object.
Operators
operator ==(View, View)
Returns a value indicating whether this instance is equal to a specified object.
public static bool operator ==(View a, View b)
Parameters
a
View
The first view.
b
View
The second view.
Returns
a value indicating whether this instance is equal to a specified object
operator >(View, View)
Returns a value indicating whether this instance is greater than a specified object.
public static bool operator >(View a, View b)
Parameters
a
View
The first view.
b
View
The second view.
Returns
a value indicating whether this instance is greater than a specified object
operator >=(View, View)
Returns a value indicating whether this instance is greater than or equal to a specified object.
public static bool operator >=(View a, View b)
Parameters
a
View
The first view.
b
View
The second view.
Returns
a value indicating whether this instance is greater than or equal to a specified object
operator !=(View, View)
Returns a value indicating whether this instance is not equal to a specified object.
public static bool operator !=(View a, View b)
Parameters
a
View
The first view.
b
View
The second view.
Returns
a value indicating whether this instance is not equal to a specified object
operator <(View, View)
Returns a value indicating whether this instance is less than a specified object.
public static bool operator <(View a, View b)
Parameters
a
View
The first filter.
b
View
The second filter.
Returns
a value indicating whether this instance is less than a specified object
operator <=(View, View)
Returns a value indicating whether this instance is less than or equal to a specified object.
public static bool operator <=(View a, View b)
Parameters
a
View
The first view.
b
View
The second view.
Returns
a value indicating whether this instance is less than or equal to a specified object </view>