Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / DesignerVerbCollection.cs / 1305376 / DesignerVerbCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design {
using System;
using System.Collections;
using System.Diagnostics;
using System.Security.Permissions;
///
/// [To be supplied.]
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class DesignerVerbCollection : CollectionBase {
///
/// [To be supplied.]
///
public DesignerVerbCollection() {
}
///
/// [To be supplied.]
///
public DesignerVerbCollection(DesignerVerb[] value) {
AddRange(value);
}
///
/// [To be supplied.]
///
public DesignerVerb this[int index] {
get {
return (DesignerVerb)(List[index]);
}
set {
List[index] = value;
}
}
///
/// [To be supplied.]
///
public int Add(DesignerVerb value) {
return List.Add(value);
}
///
/// [To be supplied.]
///
public void AddRange(DesignerVerb[] value) {
if (value == null) {
throw new ArgumentNullException("value");
}
for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
/// [To be supplied.]
///
public void AddRange(DesignerVerbCollection value) {
if (value == null) {
throw new ArgumentNullException("value");
}
int currentCount = value.Count;
for (int i = 0; i < currentCount; i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
/// [To be supplied.]
///
public void Insert(int index, DesignerVerb value) {
List.Insert(index, value);
}
///
/// [To be supplied.]
///
public int IndexOf(DesignerVerb value) {
return List.IndexOf(value);
}
///
/// [To be supplied.]
///
public bool Contains(DesignerVerb value) {
return List.Contains(value);
}
///
/// [To be supplied.]
///
public void Remove(DesignerVerb value) {
List.Remove(value);
}
///
/// [To be supplied.]
///
public void CopyTo(DesignerVerb[] array, int index) {
List.CopyTo(array, index);
}
///
/// [To be supplied.]
///
protected override void OnSet(int index, object oldValue, object newValue) {
}
///
/// [To be supplied.]
///
protected override void OnInsert(int index, object value) {
}
///
/// [To be supplied.]
///
protected override void OnClear() {
}
///
/// [To be supplied.]
///
protected override void OnRemove(int index, object value) {
}
///
/// [To be supplied.]
///
protected override void OnValidate(object value) {
Debug.Assert(value != null, "Don't add null verbs!");
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design {
using System;
using System.Collections;
using System.Diagnostics;
using System.Security.Permissions;
///
/// [To be supplied.]
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class DesignerVerbCollection : CollectionBase {
///
/// [To be supplied.]
///
public DesignerVerbCollection() {
}
///
/// [To be supplied.]
///
public DesignerVerbCollection(DesignerVerb[] value) {
AddRange(value);
}
///
/// [To be supplied.]
///
public DesignerVerb this[int index] {
get {
return (DesignerVerb)(List[index]);
}
set {
List[index] = value;
}
}
///
/// [To be supplied.]
///
public int Add(DesignerVerb value) {
return List.Add(value);
}
///
/// [To be supplied.]
///
public void AddRange(DesignerVerb[] value) {
if (value == null) {
throw new ArgumentNullException("value");
}
for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
/// [To be supplied.]
///
public void AddRange(DesignerVerbCollection value) {
if (value == null) {
throw new ArgumentNullException("value");
}
int currentCount = value.Count;
for (int i = 0; i < currentCount; i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
/// [To be supplied.]
///
public void Insert(int index, DesignerVerb value) {
List.Insert(index, value);
}
///
/// [To be supplied.]
///
public int IndexOf(DesignerVerb value) {
return List.IndexOf(value);
}
///
/// [To be supplied.]
///
public bool Contains(DesignerVerb value) {
return List.Contains(value);
}
///
/// [To be supplied.]
///
public void Remove(DesignerVerb value) {
List.Remove(value);
}
///
/// [To be supplied.]
///
public void CopyTo(DesignerVerb[] array, int index) {
List.CopyTo(array, index);
}
///
/// [To be supplied.]
///
protected override void OnSet(int index, object oldValue, object newValue) {
}
///
/// [To be supplied.]
///
protected override void OnInsert(int index, object value) {
}
///
/// [To be supplied.]
///
protected override void OnClear() {
}
///
/// [To be supplied.]
///
protected override void OnRemove(int index, object value) {
}
///
/// [To be supplied.]
///
protected override void OnValidate(object value) {
Debug.Assert(value != null, "Don't add null verbs!");
}
}
}
// 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
- Matrix3DStack.cs
- BlobPersonalizationState.cs
- OuterGlowBitmapEffect.cs
- DecimalAnimationUsingKeyFrames.cs
- WaitHandleCannotBeOpenedException.cs
- RoutedEventArgs.cs
- PrintEvent.cs
- TextRangeProviderWrapper.cs
- FigureParaClient.cs
- TrackingServices.cs
- LogLogRecord.cs
- ToolStripSplitButton.cs
- ParsedRoute.cs
- InternalTypeHelper.cs
- XPathNodePointer.cs
- CornerRadiusConverter.cs
- BaseWebProxyFinder.cs
- RadioButtonStandardAdapter.cs
- ToolStripDropDownClosedEventArgs.cs
- NavigationService.cs
- CFGGrammar.cs
- DeclarativeCatalogPart.cs
- _SslState.cs
- XmlDocumentType.cs
- _PooledStream.cs
- AssemblyResourceLoader.cs
- LoginView.cs
- BoolLiteral.cs
- HttpCookieCollection.cs
- ConfigXmlText.cs
- MemberRelationshipService.cs
- ObjectStateFormatter.cs
- InvokeBinder.cs
- BindingCompleteEventArgs.cs
- WebPartHelpVerb.cs
- ItemsPresenter.cs
- CompoundFileReference.cs
- Parser.cs
- SmtpTransport.cs
- BeginStoryboard.cs
- ManipulationStartedEventArgs.cs
- EntityDescriptor.cs
- TextBoxDesigner.cs
- DocobjHost.cs
- x509utils.cs
- PointIndependentAnimationStorage.cs
- oledbconnectionstring.cs
- SiblingIterators.cs
- XMLSchema.cs
- StrokeNodeOperations.cs
- WorkflowOwnershipException.cs
- IndexOutOfRangeException.cs
- SimplePropertyEntry.cs
- EntityKey.cs
- LockCookie.cs
- AspCompat.cs
- ImageDrawing.cs
- Variant.cs
- ContentPlaceHolder.cs
- IDictionary.cs
- AssemblyNameUtility.cs
- NamedObject.cs
- ProtocolInformationReader.cs
- UDPClient.cs
- SessionStateModule.cs
- FileStream.cs
- EllipticalNodeOperations.cs
- BaseResourcesBuildProvider.cs
- EventPropertyMap.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- ProfileSettings.cs
- AlignmentXValidation.cs
- SafeFileHandle.cs
- QuaternionRotation3D.cs
- CheckoutException.cs
- BStrWrapper.cs
- InlineUIContainer.cs
- WebPartDeleteVerb.cs
- FileNotFoundException.cs
- AsyncOperation.cs
- HtmlTable.cs
- ContainsRowNumberChecker.cs
- AdornedElementPlaceholder.cs
- TrackingProfileManager.cs
- RegexGroup.cs
- AVElementHelper.cs
- ColorInterpolationModeValidation.cs
- PartitionResolver.cs
- FontFamily.cs
- CommandArguments.cs
- HttpsChannelFactory.cs
- NumericUpDownAcceleration.cs
- Stylesheet.cs
- Documentation.cs
- UIElementIsland.cs
- UrlMapping.cs
- AmbientLight.cs
- AspCompat.cs
- AppDomain.cs
- XmlEntity.cs