Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SplineKeyFrames.cs
- WebPartsPersonalizationAuthorization.cs
- HMACSHA1.cs
- Wildcard.cs
- TogglePattern.cs
- MulticastNotSupportedException.cs
- SerializationObjectManager.cs
- DetailsViewUpdateEventArgs.cs
- SqlColumnizer.cs
- ServiceDescription.cs
- ALinqExpressionVisitor.cs
- AnonymousIdentificationSection.cs
- SmiRecordBuffer.cs
- ManualWorkflowSchedulerService.cs
- ColumnReorderedEventArgs.cs
- WindowsContainer.cs
- WebServiceHost.cs
- TimeoutException.cs
- PropagatorResult.cs
- _SafeNetHandles.cs
- ConstantCheck.cs
- ManifestResourceInfo.cs
- ObjectViewQueryResultData.cs
- RootDesignerSerializerAttribute.cs
- PeerNameRecordCollection.cs
- HostingPreferredMapPath.cs
- DataSourceIDConverter.cs
- ComboBox.cs
- BatchWriter.cs
- Column.cs
- ActivityDesignerAccessibleObject.cs
- Encoder.cs
- Crc32Helper.cs
- XmlSchemaSimpleContentExtension.cs
- unitconverter.cs
- ClientUtils.cs
- VersionedStreamOwner.cs
- ScrollItemProviderWrapper.cs
- TreeIterators.cs
- TextEmbeddedObject.cs
- PlatformNotSupportedException.cs
- ScriptControl.cs
- SafeHandles.cs
- Package.cs
- Point3DAnimation.cs
- OleDbConnectionInternal.cs
- DependencyObject.cs
- baseaxisquery.cs
- BufferedConnection.cs
- XmlWrappingReader.cs
- PocoEntityKeyStrategy.cs
- MemberDomainMap.cs
- WindowsClientCredential.cs
- ListChunk.cs
- AnnotationResource.cs
- WindowPattern.cs
- CodeVariableDeclarationStatement.cs
- MulticastIPAddressInformationCollection.cs
- StateManagedCollection.cs
- FastEncoder.cs
- SqlBinder.cs
- FilterableAttribute.cs
- LogicalExpr.cs
- ScriptReference.cs
- ListItemConverter.cs
- ErrorActivity.cs
- TimeoutException.cs
- NamedElement.cs
- SQLBoolean.cs
- SafeFileMappingHandle.cs
- BrushMappingModeValidation.cs
- PolyQuadraticBezierSegment.cs
- CoTaskMemUnicodeSafeHandle.cs
- CollectionViewGroupInternal.cs
- ProxyFragment.cs
- RequestTimeoutManager.cs
- BrushMappingModeValidation.cs
- processwaithandle.cs
- MimeMultiPart.cs
- RegexCode.cs
- DefaultAssemblyResolver.cs
- InvokePattern.cs
- SmtpSection.cs
- WorkflowViewStateService.cs
- XmlWrappingReader.cs
- FunctionNode.cs
- EditingScopeUndoUnit.cs
- NativeCppClassAttribute.cs
- TraceHwndHost.cs
- TypefaceMetricsCache.cs
- ResourceProperty.cs
- SafeRegistryKey.cs
- NestedContainer.cs
- LayoutSettings.cs
- X509Certificate2Collection.cs
- NativeMethods.cs
- QuaternionValueSerializer.cs
- ManifestBasedResourceGroveler.cs
- TextChangedEventArgs.cs
- MenuItemStyleCollection.cs