Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewItem.cs / 1 / ListViewItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[
ToolboxItem(false)
]
public class ListViewItem : Control, INamingContainer {
private ListViewItemType _itemType;
public ListViewItem(ListViewItemType itemType) {
_itemType = itemType;
}
public ListViewItemType ItemType {
get {
return _itemType;
}
}
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")]
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
return true;
}
return false;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[
ToolboxItem(false)
]
public class ListViewItem : Control, INamingContainer {
private ListViewItemType _itemType;
public ListViewItem(ListViewItemType itemType) {
_itemType = itemType;
}
public ListViewItemType ItemType {
get {
return _itemType;
}
}
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")]
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
return true;
}
return false;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrintPreviewDialog.cs
- DependencyPropertyKind.cs
- IndentedWriter.cs
- Emitter.cs
- ArcSegment.cs
- xmlfixedPageInfo.cs
- SelectedDatesCollection.cs
- ThaiBuddhistCalendar.cs
- NativeCompoundFileAPIs.cs
- AuthenticatingEventArgs.cs
- XmlCharCheckingWriter.cs
- WSFederationHttpSecurityMode.cs
- ObjectSecurity.cs
- ContravarianceAdapter.cs
- PriorityRange.cs
- TextDecorationCollection.cs
- ScriptControlDescriptor.cs
- SiteMapSection.cs
- Util.cs
- MeasureData.cs
- Regex.cs
- BCryptHashAlgorithm.cs
- rsa.cs
- TextLine.cs
- SoapMessage.cs
- TableItemProviderWrapper.cs
- MimeTypeAttribute.cs
- ReadOnlyTernaryTree.cs
- DoubleIndependentAnimationStorage.cs
- EmptyControlCollection.cs
- DecoderNLS.cs
- TabPage.cs
- OnOperation.cs
- FormsAuthenticationUserCollection.cs
- ApplicationManager.cs
- CodeMemberField.cs
- arabicshape.cs
- CodeThrowExceptionStatement.cs
- RelationshipEnd.cs
- CodeGotoStatement.cs
- SecurityTokenParameters.cs
- UrlMappingsModule.cs
- AppModelKnownContentFactory.cs
- ComboBoxRenderer.cs
- OperationContextScope.cs
- Stack.cs
- PageCache.cs
- ButtonChrome.cs
- DocumentViewer.cs
- StreamResourceInfo.cs
- _NTAuthentication.cs
- RedirectionProxy.cs
- HtmlMeta.cs
- CustomMenuItemCollection.cs
- HttpRequest.cs
- OdbcFactory.cs
- CodeNamespaceCollection.cs
- AstNode.cs
- DesignerAttribute.cs
- ProxyHwnd.cs
- FlowDocumentReaderAutomationPeer.cs
- HotSpotCollection.cs
- SQLByteStorage.cs
- CommunicationObjectManager.cs
- FormViewCommandEventArgs.cs
- LayoutTableCell.cs
- BulletedListEventArgs.cs
- DesignTimeParseData.cs
- SafeMemoryMappedViewHandle.cs
- Win32Native.cs
- WebServiceHost.cs
- Rectangle.cs
- WebProxyScriptElement.cs
- SHA512.cs
- TTSEngineProxy.cs
- Stopwatch.cs
- KeyGesture.cs
- DrawListViewItemEventArgs.cs
- FixUp.cs
- MinMaxParagraphWidth.cs
- RectValueSerializer.cs
- MetadataUtilsSmi.cs
- IndexingContentUnit.cs
- DataGridViewCellFormattingEventArgs.cs
- ContentPlaceHolder.cs
- CheckBox.cs
- Soap.cs
- GroupAggregateExpr.cs
- SqlCacheDependencyDatabaseCollection.cs
- NodeInfo.cs
- LayoutTable.cs
- ListSortDescriptionCollection.cs
- SplineKeyFrames.cs
- cookiecollection.cs
- ParserStreamGeometryContext.cs
- BinaryConverter.cs
- ManipulationVelocities.cs
- ProcessInputEventArgs.cs
- DateTimeValueSerializerContext.cs
- PersistenceProvider.cs