Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1305376 / 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
- Int32Storage.cs
- BitmapEncoder.cs
- ObjectDataSourceDisposingEventArgs.cs
- OdbcCommand.cs
- VirtualPath.cs
- DataShape.cs
- TimeSpan.cs
- DataGridParentRows.cs
- ApplicationManager.cs
- Region.cs
- XmlRawWriterWrapper.cs
- OdbcEnvironmentHandle.cs
- WebBrowserProgressChangedEventHandler.cs
- selecteditemcollection.cs
- Assembly.cs
- GridViewEditEventArgs.cs
- MaskedTextBoxTextEditorDropDown.cs
- SqlRetyper.cs
- SqlUdtInfo.cs
- DeclarativeCatalogPart.cs
- BitmapDownload.cs
- TypeToken.cs
- VariableAction.cs
- ThicknessKeyFrameCollection.cs
- DiagnosticsConfiguration.cs
- ChtmlSelectionListAdapter.cs
- InlinedAggregationOperatorEnumerator.cs
- ProviderIncompatibleException.cs
- RequestCachingSection.cs
- LookupBindingPropertiesAttribute.cs
- GenericWebPart.cs
- QueryProcessor.cs
- ThemeDirectoryCompiler.cs
- QueryPageSettingsEventArgs.cs
- _ListenerAsyncResult.cs
- ILGenerator.cs
- XhtmlConformanceSection.cs
- HostExecutionContextManager.cs
- DocumentPageHost.cs
- SqlConnectionString.cs
- CallContext.cs
- Pair.cs
- Stack.cs
- JsonReaderWriterFactory.cs
- PageStatePersister.cs
- UriExt.cs
- Substitution.cs
- ToolStripScrollButton.cs
- GcHandle.cs
- XamlTreeBuilder.cs
- BindingContext.cs
- NamespaceQuery.cs
- SqlStream.cs
- ClassHandlersStore.cs
- DiscoveryDocument.cs
- XsltLoader.cs
- ActionItem.cs
- Underline.cs
- MethodAccessException.cs
- OracleInfoMessageEventArgs.cs
- ArgumentNullException.cs
- MeshGeometry3D.cs
- NetworkInformationException.cs
- RecordManager.cs
- SignedPkcs7.cs
- X509CertificateCollection.cs
- HttpWebRequestElement.cs
- AssemblyCollection.cs
- CodeCompiler.cs
- ScrollPattern.cs
- OdbcConnectionOpen.cs
- SHA256Managed.cs
- SynchronizedInputProviderWrapper.cs
- SafeIUnknown.cs
- DataRow.cs
- PreservationFileReader.cs
- shaperfactoryquerycacheentry.cs
- AssemblyCacheEntry.cs
- SafeEventLogWriteHandle.cs
- ExpressionBuilderCollection.cs
- DataControlLinkButton.cs
- DefaultEventAttribute.cs
- WeakHashtable.cs
- MILUtilities.cs
- ToolStripSeparatorRenderEventArgs.cs
- ModelPropertyDescriptor.cs
- NotFiniteNumberException.cs
- DataBoundLiteralControl.cs
- LayoutEditorPart.cs
- PropertyMappingExceptionEventArgs.cs
- ColumnClickEvent.cs
- UserPreferenceChangingEventArgs.cs
- SerializationIncompleteException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- MD5CryptoServiceProvider.cs
- DesignerTransaction.cs
- RemoteDebugger.cs
- DoubleAnimationUsingPath.cs
- PropertyEmitter.cs
- DefaultClaimSet.cs