public class View extends Object implements Comparable<View>
Represents a view in Project.
Constructor and Description |
---|
View()
Initializes a new instance of the
View class. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(View other)
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.
|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
Filter |
getFilter()
Gets a filter used in a single view.
|
Group |
getGroup()
Gets a group of the single view.
|
boolean |
getHighlightFilter()
Gets a value indicating whether Microsoft Project highlights the filter for a single view.
|
int |
getIndex()
Deprecated.
This property is not used anymore and will be removed after the release 20.10.
|
String |
getName()
Gets the name of a View object.
|
PageInfo |
getPageInfo()
Gets an instance of the
PageInfo (getPageInfo() ) class. |
Project |
getParentProject()
Gets the parent of the View object.
|
int |
getScreen()
Gets the screen type for the single view.
|
boolean |
getShowInMenu()
Gets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views
drop-down lists in the Ribbon.
|
Table |
getTable()
Gets a table of the single view.
|
int |
getType()
Gets the type of item in the single view, such as tasks or resources.
|
int |
getUid()
Gets the unique identifier of a view.
|
int |
hashCode()
Returns a hash code value for the instance of the
Resource class. |
static boolean |
op_Equality(View a,
View b)
Returns a value indicating whether this instance is equal to a specified object.
|
static boolean |
op_GreaterThan(View a,
View b)
Returns a value indicating whether this instance is greater than a specified object.
|
static boolean |
op_GreaterThanOrEqual(View a,
View b)
Returns a value indicating whether this instance is greater than or equal to a specified object.
|
static boolean |
op_Inequality(View a,
View b)
Returns a value indicating whether this instance is not equal to a specified object.
|
static boolean |
op_LessThan(View a,
View b)
Returns a value indicating whether this instance is less than a specified object.
|
static boolean |
op_LessThanOrEqual(View a,
View b)
Returns a value indicating whether this instance is less than or equal to a specified object.
|
void |
setFilter(Filter value)
Sets a filter used in a single view.
|
void |
setGroup(Group value)
Sets a group of the single view.
|
void |
setHighlightFilter(boolean value)
Sets a value indicating whether Microsoft Project highlights the filter for a single view.
|
void |
setName(String value)
Sets the name of a View object.
|
void |
setShowInMenu(boolean value)
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.
|
void |
setTable(Table value)
Sets a table of the single view.
|
public View()
Initializes a new instance of the View
class.
public final int compareTo(View other)
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.
compareTo
in interface Comparable<View>
other
- the specified View object to compare this instance to.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.public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public final Filter getFilter()
Gets a filter used in a single view.
public final void setFilter(Filter value)
Sets a filter used in a single view.
value
- a filter used in a single view.public final Group getGroup()
Gets a group of the single view.
public final void setGroup(Group value)
Sets a group of the single view.
value
- a group of the single view.public final boolean getHighlightFilter()
Gets a value indicating whether Microsoft Project highlights the filter for a single view.
public final void setHighlightFilter(boolean value)
Sets a value indicating whether Microsoft Project highlights the filter for a single view.
value
- a value indicating whether Microsoft Project highlights the filter for a single view.@Deprecated public final int getIndex()
Gets the index of a View object in the Views containing object.
public final String getName()
Gets the name of a View object.
public final void setName(String value)
Sets the name of a View object.
value
- the name of a View object.public final PageInfo getPageInfo()
Gets an instance of the PageInfo
(getPageInfo()
) class. Represents page setup data which is present
in mpp file format.
PageInfo
(getPageInfo()
) class.public final Project getParentProject()
Gets the parent of the View object.
Read-only Project
.
public final int getScreen()
Gets the screen type for the single view.
Read-only ViewScreen
.
public final boolean getShowInMenu()
Gets 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 final void setShowInMenu(boolean value)
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.
value
- 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 final Table getTable()
Gets a table of the single view.
public final void setTable(Table value)
Sets a table of the single view.
value
- a table of the single view.public final int getType()
Gets the type of item in the single view, such as tasks or resources.
Read-only ItemType
.
public final int getUid()
Gets the unique identifier of a view.
public int hashCode()
Returns a hash code value for the instance of the Resource
class.
public static boolean op_Equality(View a, View b)
Returns a value indicating whether this instance is equal to a specified object.
a
- The first view.b
- The second view.public static boolean op_GreaterThan(View a, View b)
Returns a value indicating whether this instance is greater than a specified object.
a
- The first view.b
- The second view.public static boolean op_GreaterThanOrEqual(View a, View b)
Returns a value indicating whether this instance is greater than or equal to a specified object.
a
- The first view.b
- The second view.public static boolean op_Inequality(View a, View b)
Returns a value indicating whether this instance is not equal to a specified object.
a
- The first view.b
- The second view.public static boolean op_LessThan(View a, View b)
Returns a value indicating whether this instance is less than a specified object.
a
- The first filter.b
- The second filter.public static boolean op_LessThanOrEqual(View a, View b)
Returns a value indicating whether this instance is less than or equal to a specified object.
a
- The first view.b
- The second view.