Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessagePropertyVariants.cs
- TracingConnection.cs
- InstanceDescriptor.cs
- RoutedEventArgs.cs
- UnsafeNativeMethodsMilCoreApi.cs
- hwndwrapper.cs
- UnmanagedMarshal.cs
- EventListener.cs
- QueryPageSettingsEventArgs.cs
- EditorPartCollection.cs
- DataReaderContainer.cs
- NamespaceDecl.cs
- CharStorage.cs
- CellParagraph.cs
- AttributeTableBuilder.cs
- FixedSOMTableCell.cs
- Label.cs
- ListViewInsertedEventArgs.cs
- QuerySafeNavigator.cs
- RegionInfo.cs
- ProcessHostServerConfig.cs
- BindingWorker.cs
- RangeBaseAutomationPeer.cs
- Serializer.cs
- GB18030Encoding.cs
- XmlEncoding.cs
- DocumentSequenceHighlightLayer.cs
- System.Data_BID.cs
- ProxyWebPartManagerDesigner.cs
- ScriptServiceAttribute.cs
- HMACSHA1.cs
- OdbcEnvironmentHandle.cs
- CAGDesigner.cs
- CopyOnWriteList.cs
- TextParagraphCache.cs
- FirstMatchCodeGroup.cs
- MemberRelationshipService.cs
- EntityPropertyMappingAttribute.cs
- Point.cs
- DataListItemCollection.cs
- AppendHelper.cs
- OutputCacheModule.cs
- RegexFCD.cs
- SafeLocalMemHandle.cs
- SpellerStatusTable.cs
- EncryptedPackageFilter.cs
- XmlnsCompatibleWithAttribute.cs
- RuleSettings.cs
- FlowDocumentScrollViewer.cs
- FocusTracker.cs
- MembershipPasswordException.cs
- Enum.cs
- ConfigXmlCDataSection.cs
- EventLogPermission.cs
- FastEncoder.cs
- BitArray.cs
- PackageDigitalSignatureManager.cs
- designeractionbehavior.cs
- ProcessThreadCollection.cs
- InputManager.cs
- ListViewHitTestInfo.cs
- AdornerDecorator.cs
- HttpServerUtilityBase.cs
- GeometryModel3D.cs
- RangeValidator.cs
- ManagementEventArgs.cs
- TypeUsageBuilder.cs
- OdbcFactory.cs
- CodeValidator.cs
- NegatedConstant.cs
- ToolStripItemGlyph.cs
- ByteAnimationUsingKeyFrames.cs
- SchemaImporterExtensionElement.cs
- GridViewRowEventArgs.cs
- LZCodec.cs
- DecimalAnimationUsingKeyFrames.cs
- IODescriptionAttribute.cs
- StringSource.cs
- Model3DCollection.cs
- SmiEventStream.cs
- DocumentXPathNavigator.cs
- SafeRegistryHandle.cs
- AxisAngleRotation3D.cs
- TdsEnums.cs
- CellTreeNodeVisitors.cs
- ConfigurationElement.cs
- InternalPolicyElement.cs
- EdmError.cs
- GridEntry.cs
- HitTestDrawingContextWalker.cs
- _FixedSizeReader.cs
- DoubleAnimation.cs
- DeferredElementTreeState.cs
- PolicyStatement.cs
- RolePrincipal.cs
- Annotation.cs
- SeparatorAutomationPeer.cs
- TimeoutException.cs
- BitmapEffect.cs
- ExpressionBuilder.cs