Code:
/ DotNET / DotNET / 8.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
- WebPartEditVerb.cs
- BezierSegment.cs
- SqlDataSourceQueryEditorForm.cs
- ClassImporter.cs
- ResetableIterator.cs
- FormatException.cs
- SplitterPanel.cs
- HttpHeaderCollection.cs
- RangeValidator.cs
- InnerItemCollectionView.cs
- Attribute.cs
- PerformanceCounterLib.cs
- Cell.cs
- FlowNode.cs
- CustomWebEventKey.cs
- SmiEventSink.cs
- ChannelOptions.cs
- PropertyEmitterBase.cs
- DocumentEventArgs.cs
- CalendarAutomationPeer.cs
- TreeNodeBindingCollection.cs
- InteropBitmapSource.cs
- Token.cs
- GetPageNumberCompletedEventArgs.cs
- SqlExpander.cs
- DependencyPropertyAttribute.cs
- TrackingStringDictionary.cs
- TypeValidationEventArgs.cs
- CountdownEvent.cs
- ColorContextHelper.cs
- HtmlInputFile.cs
- GlyphsSerializer.cs
- PrimarySelectionAdorner.cs
- DataGridCheckBoxColumn.cs
- Pointer.cs
- TouchesCapturedWithinProperty.cs
- CompoundFileStorageReference.cs
- CharAnimationUsingKeyFrames.cs
- ThreadExceptionDialog.cs
- PeerResolverMode.cs
- SkewTransform.cs
- IndentedWriter.cs
- XmlMapping.cs
- PolyLineSegment.cs
- webclient.cs
- SecurityVerifiedMessage.cs
- OleDbPermission.cs
- TextUtf8RawTextWriter.cs
- WebMessageFormatHelper.cs
- Path.cs
- HttpModuleActionCollection.cs
- DesignerView.Commands.cs
- InheritanceRules.cs
- TextElementEnumerator.cs
- CompressionTransform.cs
- TreeViewHitTestInfo.cs
- ListBindingConverter.cs
- MgmtConfigurationRecord.cs
- URI.cs
- CachedRequestParams.cs
- NodeCounter.cs
- OpenTypeLayout.cs
- UnitySerializationHolder.cs
- CacheRequest.cs
- Attributes.cs
- Point3D.cs
- MemoryPressure.cs
- ColorTransform.cs
- HtmlHead.cs
- TrackBarRenderer.cs
- DocumentSequenceHighlightLayer.cs
- AffineTransform3D.cs
- Light.cs
- SpellerStatusTable.cs
- XmlUTF8TextWriter.cs
- PolicyException.cs
- SelectionItemPattern.cs
- Rectangle.cs
- DesignTimeDataBinding.cs
- ProviderException.cs
- TypeDescriptionProvider.cs
- AutomationEventArgs.cs
- GPRECTF.cs
- FixedPageStructure.cs
- Compiler.cs
- SystemFonts.cs
- Stack.cs
- SelectionRange.cs
- FileDialog_Vista_Interop.cs
- DoubleStorage.cs
- SystemColorTracker.cs
- DiscreteKeyFrames.cs
- PageCache.cs
- UpdateManifestForBrowserApplication.cs
- TileModeValidation.cs
- MarkupCompilePass1.cs
- SafeMarshalContext.cs
- FixedSOMTableCell.cs
- SmtpReplyReaderFactory.cs
- WindowsToolbar.cs