Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1 / DesignTimeVisibleAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- shaperfactory.cs
- ProjectionCamera.cs
- DataRow.cs
- ElementHostAutomationPeer.cs
- TableLayout.cs
- PageVisual.cs
- SQLInt64Storage.cs
- SqlXmlStorage.cs
- ToggleButtonAutomationPeer.cs
- UnsafeNativeMethodsPenimc.cs
- DateRangeEvent.cs
- PriorityQueue.cs
- SqlDataSourceStatusEventArgs.cs
- AnimationException.cs
- InvalidEnumArgumentException.cs
- ApplicationActivator.cs
- PropertyMetadata.cs
- cryptoapiTransform.cs
- ObjectDataSourceMethodEventArgs.cs
- SynchronizationValidator.cs
- RoleService.cs
- sqlser.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- WebPartConnectionsDisconnectVerb.cs
- EndpointReference.cs
- EncryptedKeyIdentifierClause.cs
- ClientScriptManager.cs
- StagingAreaInputItem.cs
- StateDesigner.LayoutSelectionGlyph.cs
- TransformedBitmap.cs
- HttpModuleActionCollection.cs
- InterleavedZipPartStream.cs
- IntSecurity.cs
- ListViewItemCollectionEditor.cs
- InputElement.cs
- ProjectionCamera.cs
- SafeTimerHandle.cs
- Semaphore.cs
- Baml2006Reader.cs
- WebPartVerb.cs
- XhtmlBasicFormAdapter.cs
- SafeLibraryHandle.cs
- NumberFormatter.cs
- EventsTab.cs
- NamespaceTable.cs
- EntityDataSourceSelectedEventArgs.cs
- GridEntry.cs
- DataGridViewRowConverter.cs
- SelectionEditor.cs
- ScriptResourceMapping.cs
- WorkflowNamespace.cs
- HttpModuleActionCollection.cs
- TextElement.cs
- XmlIlTypeHelper.cs
- ConfigurationManagerHelper.cs
- X509SecurityTokenAuthenticator.cs
- KeyGestureValueSerializer.cs
- TransactedReceiveScope.cs
- RightsManagementInformation.cs
- MessageSmuggler.cs
- RoleServiceManager.cs
- ProcessProtocolHandler.cs
- HopperCache.cs
- ConfigurationElement.cs
- BinaryKeyIdentifierClause.cs
- ButtonField.cs
- keycontainerpermission.cs
- MenuCommand.cs
- ApplicationServicesHostFactory.cs
- QueueSurrogate.cs
- LinqDataSourceDisposeEventArgs.cs
- ApplyTemplatesAction.cs
- LinqDataSourceInsertEventArgs.cs
- PopOutPanel.cs
- SystemException.cs
- AtomMaterializer.cs
- DrawingCollection.cs
- _LocalDataStore.cs
- ChangePassword.cs
- ClientSideProviderDescription.cs
- DataObject.cs
- SettingsProviderCollection.cs
- MaskInputRejectedEventArgs.cs
- OdbcRowUpdatingEvent.cs
- TreeNodeCollection.cs
- DataGridViewColumnCollection.cs
- _SecureChannel.cs
- CompilerTypeWithParams.cs
- StrokeIntersection.cs
- ButtonBase.cs
- InkCanvas.cs
- FileSystemEventArgs.cs
- IfAction.cs
- CharacterMetricsDictionary.cs
- SpellCheck.cs
- SamlAuthorityBinding.cs
- IndexedGlyphRun.cs
- DateTimeConstantAttribute.cs
- TypedTableBaseExtensions.cs