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
- Invariant.cs
- BeginStoryboard.cs
- URLEditor.cs
- DefaultValueConverter.cs
- CachedTypeface.cs
- SmtpReplyReader.cs
- ToolStripSplitButton.cs
- WorkflowRuntimeSection.cs
- DataRelation.cs
- WorkflowElementDialog.cs
- PnrpPeerResolverElement.cs
- TableParaClient.cs
- XmlSchemaCollection.cs
- DataGridViewRowCancelEventArgs.cs
- ImageMetadata.cs
- ControlPager.cs
- PropertyItem.cs
- DataTableCollection.cs
- QuaternionAnimation.cs
- Pointer.cs
- ModuleConfigurationInfo.cs
- MergeFailedEvent.cs
- ContainerUIElement3D.cs
- BufferedReadStream.cs
- Delegate.cs
- Int32Converter.cs
- SvcMapFile.cs
- DataBindingList.cs
- ReaderWriterLock.cs
- AssemblySettingAttributes.cs
- Matrix3D.cs
- CompareInfo.cs
- SqlDataReaderSmi.cs
- CollectionBuilder.cs
- SmiXetterAccessMap.cs
- BmpBitmapEncoder.cs
- CodeIdentifiers.cs
- HtmlInputImage.cs
- DbParameterCollection.cs
- TabPanel.cs
- XamlFigureLengthSerializer.cs
- StubHelpers.cs
- XmlSchemaParticle.cs
- PolicyException.cs
- XMLDiffLoader.cs
- WebServiceTypeData.cs
- DrawToolTipEventArgs.cs
- IPHostEntry.cs
- Number.cs
- x509store.cs
- ScriptRegistrationManager.cs
- Environment.cs
- WindowClosedEventArgs.cs
- MouseEvent.cs
- SudsWriter.cs
- StylusPoint.cs
- IdnElement.cs
- HtmlInputText.cs
- PersonalizationProvider.cs
- FileSecurity.cs
- DataDesignUtil.cs
- WrapPanel.cs
- TextBoxDesigner.cs
- CommentAction.cs
- HtmlWindowCollection.cs
- NullableLongAverageAggregationOperator.cs
- AnonymousIdentificationModule.cs
- CommonXSendMessage.cs
- LocationSectionRecord.cs
- SimpleBitVector32.cs
- Rectangle.cs
- DecimalMinMaxAggregationOperator.cs
- WebScriptMetadataInstanceContextProvider.cs
- SchemaSetCompiler.cs
- TraceSection.cs
- panel.cs
- XhtmlBasicSelectionListAdapter.cs
- DataGridDesigner.cs
- ContentPropertyAttribute.cs
- InternalConfigSettingsFactory.cs
- Activity.cs
- TriggerActionCollection.cs
- ConfigurationValidatorBase.cs
- AuthenticatingEventArgs.cs
- PartManifestEntry.cs
- PropertyMetadata.cs
- EventLogEntryCollection.cs
- MULTI_QI.cs
- ExpandCollapsePattern.cs
- URI.cs
- CodeEntryPointMethod.cs
- WindowsAuthenticationEventArgs.cs
- LightweightEntityWrapper.cs
- TreeNodeStyle.cs
- Matrix.cs
- WebPartDisplayModeCancelEventArgs.cs
- PageThemeParser.cs
- AsymmetricKeyExchangeDeformatter.cs
- ConfigXmlComment.cs
- EncryptedType.cs