Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Design / PropertyValueUIItem.cs / 1 / PropertyValueUIItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing.Design { using System.Diagnostics; using Microsoft.Win32; using System.Collections; using System.Drawing; ////// /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class PropertyValueUIItem { ///Provides information about the property value UI including the invoke /// handler, tool tip, and the glyph icon to be displayed on the property /// browser. ////// /// The image to display for this. Must be 8x8 /// private Image itemImage; ////// /// The handler to fire if this item is double clicked. /// private PropertyValueUIItemInvokeHandler handler; ////// /// The tooltip for this item. /// private string tooltip; ////// /// public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip){ this.itemImage = uiItemImage; this.handler = handler; if (itemImage == null) { throw new ArgumentNullException("uiItemImage"); } if (handler == null) { throw new ArgumentNullException("handler"); } this.tooltip = tooltip; } ///Initiailzes a new instance of the ///class. /// /// public virtual Image Image { get { return itemImage; } } ///Gets or sets /// the 8x8 pixel image that will be drawn on the properties window. ////// /// public virtual PropertyValueUIItemInvokeHandler InvokeHandler { get { return handler; } } ///Gets or sets the handler that will be raised when this item is double clicked. ////// /// public virtual string ToolTip { get { return tooltip; } } ///Gets or sets the /// tool tip to display for this item. ////// /// public virtual void Reset(){ } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Resets the UI item. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NavigateEvent.cs
- SiteMap.cs
- ComponentEditorForm.cs
- InvalidOleVariantTypeException.cs
- ProviderMetadataCachedInformation.cs
- DesignerProperties.cs
- Message.cs
- ToolStripControlHost.cs
- MailSettingsSection.cs
- FaultReasonText.cs
- BroadcastEventHelper.cs
- FrameworkTemplate.cs
- ConditionalWeakTable.cs
- InvalidPipelineStoreException.cs
- GrammarBuilderWildcard.cs
- ContentValidator.cs
- Wizard.cs
- infer.cs
- LineSegment.cs
- SynchronizationFilter.cs
- TreeBuilderXamlTranslator.cs
- TreeNodeBindingCollection.cs
- SiteMapDataSourceView.cs
- Int32CollectionConverter.cs
- CachingHintValidation.cs
- SortAction.cs
- DirectoryInfo.cs
- ReadOnlyDictionary.cs
- SupportsEventValidationAttribute.cs
- COAUTHINFO.cs
- ArrayElementGridEntry.cs
- ImageSourceConverter.cs
- ListControl.cs
- LiteralControl.cs
- TreeViewDesigner.cs
- BasicCellRelation.cs
- StatusBarPanel.cs
- HiddenFieldDesigner.cs
- ParameterInfo.cs
- PointConverter.cs
- URLString.cs
- NegatedCellConstant.cs
- WinCategoryAttribute.cs
- StdValidatorsAndConverters.cs
- ReadWriteObjectLock.cs
- CalendarDesigner.cs
- EventMap.cs
- EncoderParameters.cs
- followingquery.cs
- XmlSchemaSimpleType.cs
- TargetInvocationException.cs
- Membership.cs
- Query.cs
- WeakReferenceList.cs
- ExpanderAutomationPeer.cs
- NativeRecognizer.cs
- DataControlField.cs
- ActiveDocumentEvent.cs
- TypeTypeConverter.cs
- RevocationPoint.cs
- EditorZoneBase.cs
- RSAPKCS1SignatureDeformatter.cs
- TCEAdapterGenerator.cs
- ObjectItemCollection.cs
- InfoCardKeyedHashAlgorithm.cs
- TreeNodeClickEventArgs.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlConvert.cs
- TableProviderWrapper.cs
- BlurEffect.cs
- CompiledQueryCacheKey.cs
- MinimizableAttributeTypeConverter.cs
- MemoryStream.cs
- updateconfighost.cs
- PolyBezierSegment.cs
- ProtocolsConfiguration.cs
- UInt32.cs
- TextEffectResolver.cs
- CodeIdentifier.cs
- EntityParameter.cs
- EndpointIdentityConverter.cs
- XamlFigureLengthSerializer.cs
- RectAnimationBase.cs
- BuildProvidersCompiler.cs
- DbDataSourceEnumerator.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- FigureHelper.cs
- HierarchicalDataBoundControl.cs
- CodeFieldReferenceExpression.cs
- CodeAttributeArgument.cs
- MulticastNotSupportedException.cs
- MessageContractAttribute.cs
- ToolboxComponentsCreatingEventArgs.cs
- DelegatingConfigHost.cs
- MessageContractAttribute.cs
- LayoutExceptionEventArgs.cs
- URLIdentityPermission.cs
- HttpStaticObjectsCollectionWrapper.cs
- InfoCardTraceRecord.cs
- XpsException.cs