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
- TreeViewImageIndexConverter.cs
- Closure.cs
- ContentElementAutomationPeer.cs
- EmptyStringExpandableObjectConverter.cs
- fixedPageContentExtractor.cs
- ReliableChannelBinder.cs
- MultiDataTrigger.cs
- AnonymousIdentificationModule.cs
- OpCopier.cs
- OleDbCommand.cs
- TextPattern.cs
- DataServiceContext.cs
- FocusTracker.cs
- DataTableNewRowEvent.cs
- SinglePhaseEnlistment.cs
- CodeTypeDeclaration.cs
- ActivityInstance.cs
- UrlMappingsModule.cs
- Wildcard.cs
- BaseValidator.cs
- ToolboxItemWrapper.cs
- SafeNativeMethods.cs
- ApplicationInterop.cs
- FixUpCollection.cs
- ConnectionPointCookie.cs
- KeyEventArgs.cs
- FixedElement.cs
- DropDownList.cs
- ConfigLoader.cs
- MenuCommand.cs
- CompilerInfo.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- ExpressionBuilderContext.cs
- ShortcutKeysEditor.cs
- ObjectStateFormatter.cs
- InstancePersistenceContext.cs
- DoubleUtil.cs
- SqlRewriteScalarSubqueries.cs
- CounterCreationData.cs
- XmlEnumAttribute.cs
- Method.cs
- DocumentSchemaValidator.cs
- NameNode.cs
- CodeVariableReferenceExpression.cs
- BindingsCollection.cs
- DomainUpDown.cs
- HttpCachePolicyBase.cs
- NamespaceList.cs
- CodeDirectiveCollection.cs
- MaterialCollection.cs
- KeyboardNavigation.cs
- XmlSerializerFactory.cs
- BamlLocalizableResourceKey.cs
- Int64Storage.cs
- HttpHandlerActionCollection.cs
- StrongNamePublicKeyBlob.cs
- CodeThrowExceptionStatement.cs
- InputEventArgs.cs
- ContentPlaceHolder.cs
- ProvidersHelper.cs
- TextProviderWrapper.cs
- SequenceFullException.cs
- DataReceivedEventArgs.cs
- ContentType.cs
- BasePattern.cs
- Rotation3DAnimationBase.cs
- CultureInfoConverter.cs
- EventData.cs
- StreamInfo.cs
- InputReport.cs
- TimelineClockCollection.cs
- ParameterToken.cs
- DataBindEngine.cs
- DataGridRelationshipRow.cs
- PreservationFileWriter.cs
- MessageBox.cs
- CatalogZoneAutoFormat.cs
- Atom10FormatterFactory.cs
- WorkflowApplicationIdleEventArgs.cs
- WebPart.cs
- HttpCacheVaryByContentEncodings.cs
- AdRotator.cs
- StreamReader.cs
- DataStreams.cs
- OpCodes.cs
- ListDictionaryInternal.cs
- DataServiceBuildProvider.cs
- TypeHelpers.cs
- WindowCollection.cs
- SecondaryViewProvider.cs
- ListViewPagedDataSource.cs
- PrintingPermissionAttribute.cs
- MouseOverProperty.cs
- HtmlShimManager.cs
- RequiredAttributeAttribute.cs
- TdsEnums.cs
- XmlSchemaSimpleType.cs
- TextWriter.cs
- ServiceBehaviorElement.cs
- LicenseContext.cs