Class View

Class View

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

Represents a view in Project.

public class View : IComparable<view>

Inheritance

objectView

Derived

GanttChartView, TimelineView, UsageView

Implements

IComparable<view>

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

Filter

Group

Gets or sets a group of the single view.

public Group Group { get; set; }

Property Value

Group

HighlightFilter

Gets or sets a value indicating whether Microsoft Project highlights the filter for a single view.

public bool HighlightFilter { get; set; }

Property Value

bool

Name

Gets or sets the name of a View object.

public string Name { get; set; }

Property Value

string

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

PageInfo

ParentProject

Gets the parent of the View object. Read-only Aspose.Tasks.Project.

public Project ParentProject { get; }

Property Value

Project

Screen

Gets the screen type for the single view. Read-only Aspose.Tasks.ViewScreen.

public ViewScreen Screen { get; }

Property Value

ViewScreen

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

bool

Table

Gets or sets a table of the single view.

public Table Table { get; set; }

Property Value

Table

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

ItemType

Uid

Gets the unique identifier of a view.

public int Uid { get; }

Property Value

int

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&gt;

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

int

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

bool

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

int

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

bool

a value indicating whether this instance is equal to a specified object

operator &gt;(View, View)

Returns a value indicating whether this instance is greater than a specified object.

public static bool operator &gt;(View a, View b)

Parameters

a View

The first view.

b View

The second view.

Returns

bool

a value indicating whether this instance is greater than a specified object

operator &gt;=(View, View)

Returns a value indicating whether this instance is greater than or equal to a specified object.

public static bool operator &gt;=(View a, View b)

Parameters

a View

The first view.

b View

The second view.

Returns

bool

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

bool

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 &lt;(View a, View b)

Parameters

a View

The first filter.

b View

The second filter.

Returns

bool

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 &lt;=(View a, View b)

Parameters

a View

The first view.

b View

The second view.

Returns

bool

a value indicating whether this instance is less than or equal to a specified object </view>