Skip to main content
Tab

NewsItem Members

Represents a news item.

Constructors

Name Description
NewsItem() Initializes a new instance of the NewsItem class with default settings.
NewsItem(String, String, String, String, String, DateTime) Initializes a new instance of the NewsItem class with the specified settings.
NewsItem(String, String, String, String, String) Initializes a new instance of the NewsItem class with the specified settings.
NewsItem(String, String, String, String) Initializes a new instance of the NewsItem class with the specified settings.
NewsItem(String, String, String) Initializes a new instance of the NewsItem class with the specified settings.
NewsItem(String, String) Initializes a new instance of the NewsItem class with the specified header text and contents.
NewsItem(String) Initializes a new instance of the NewsItem class with the specified header text.

Properties

Name Description
Collection Gets the collection to which an item belongs. Inherited from CollectionItem.
DataItem Gets or sets the data item that is bound to the Item. Inherited from DataViewItem.
Date Gets or sets the item’s date.
HeaderText Gets or sets the text displayed within the item’s header.
Image Gets the settings of an image displayed within the item.
Index Gets or sets the item’s index within the collection. Inherited from CollectionItem.
Name Gets or sets the item’s unique identifier name.
NavigateUrl Gets or sets the item’s URL.
Text Gets or sets the item’s contents.

Methods

Name Description
Assign(CollectionItem) Copies public properties from the specified CollectionItem object to the current object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindControl(String) Searches the current naming container for a server control with the specified id parameter. Inherited from DataViewItem.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns the string that represents the NewsItem object.
See Also