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
- RectConverter.cs
- diagnosticsswitches.cs
- CaseExpr.cs
- Tag.cs
- dbenumerator.cs
- EntityModelSchemaGenerator.cs
- DesignerDataConnection.cs
- Help.cs
- XamlSerializerUtil.cs
- BindingListCollectionView.cs
- MenuBase.cs
- CommonProperties.cs
- SoapCommonClasses.cs
- TextSerializer.cs
- HttpApplication.cs
- UriTemplateTrieLocation.cs
- ToolBarTray.cs
- CopyNodeSetAction.cs
- EncryptedKeyHashIdentifierClause.cs
- NegotiateStream.cs
- MSAANativeProvider.cs
- XslNumber.cs
- LastQueryOperator.cs
- RijndaelManagedTransform.cs
- SpellerStatusTable.cs
- CqlLexerHelpers.cs
- PriorityBindingExpression.cs
- XmlILStorageConverter.cs
- SqlErrorCollection.cs
- BaseCollection.cs
- TrackingWorkflowEventArgs.cs
- RegistrationServices.cs
- SequenceDesigner.cs
- BaseTreeIterator.cs
- LongCountAggregationOperator.cs
- InkSerializer.cs
- TlsSspiNegotiation.cs
- ICollection.cs
- PackagingUtilities.cs
- FocusManager.cs
- TextTreeUndoUnit.cs
- WebPartConnectionsConfigureVerb.cs
- ChannelReliableSession.cs
- MessageDecoder.cs
- AlternationConverter.cs
- InternalDuplexBindingElement.cs
- designeractionlistschangedeventargs.cs
- UriTemplatePathSegment.cs
- ExecutionEngineException.cs
- SqlError.cs
- DictionarySectionHandler.cs
- ScalarConstant.cs
- SqlGenericUtil.cs
- COM2TypeInfoProcessor.cs
- DataGridViewIntLinkedList.cs
- BinarySecretKeyIdentifierClause.cs
- ArrangedElementCollection.cs
- HtmlForm.cs
- InternalConfigConfigurationFactory.cs
- TrackBar.cs
- WsdlImporter.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ConfigurationStrings.cs
- Adorner.cs
- DataKey.cs
- SchemaImporterExtensionElementCollection.cs
- SystemWebSectionGroup.cs
- FixedDocumentPaginator.cs
- CodeMemberMethod.cs
- RootNamespaceAttribute.cs
- SendKeys.cs
- infer.cs
- Double.cs
- EmptyQuery.cs
- BuildResult.cs
- TemplateBuilder.cs
- HelpInfo.cs
- ListCommandEventArgs.cs
- EntityConnection.cs
- VisualCollection.cs
- TextEditorTyping.cs
- GridViewColumnCollectionChangedEventArgs.cs
- HtmlElement.cs
- FreezableCollection.cs
- BackgroundWorker.cs
- Viewport3DAutomationPeer.cs
- KernelTypeValidation.cs
- KernelTypeValidation.cs
- AddDataControlFieldDialog.cs
- ContextMarshalException.cs
- precedingsibling.cs
- NativeRightsManagementAPIsStructures.cs
- WebPartEventArgs.cs
- PageStatePersister.cs
- ProfileSettingsCollection.cs
- ADMembershipProvider.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ExpandSegment.cs
- SortableBindingList.cs
- AsymmetricSignatureDeformatter.cs