Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Misc / ImageListUtils.cs / 1305376 / ImageListUtils.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BlobPersonalizationState.cs
- ApplicationInfo.cs
- RelationshipDetailsRow.cs
- NotFiniteNumberException.cs
- ListViewPagedDataSource.cs
- EntityDataSourceView.cs
- Transform3DCollection.cs
- TextRangeAdaptor.cs
- JapaneseCalendar.cs
- ProgressBar.cs
- DeclarationUpdate.cs
- EmptyCollection.cs
- MergeFailedEvent.cs
- Command.cs
- DefaultMemberAttribute.cs
- XmlArrayItemAttributes.cs
- QueuePathDialog.cs
- EntityDataSourceReferenceGroup.cs
- EasingQuaternionKeyFrame.cs
- ImageConverter.cs
- DomNameTable.cs
- MouseButton.cs
- EntitySqlQueryState.cs
- QilList.cs
- DependencyPropertyDescriptor.cs
- GifBitmapEncoder.cs
- DocumentApplicationDocumentViewer.cs
- translator.cs
- PointAnimationUsingKeyFrames.cs
- XmlILIndex.cs
- GrammarBuilderWildcard.cs
- ModelUIElement3D.cs
- DataBinder.cs
- ToolBarDesigner.cs
- FieldToken.cs
- SecUtil.cs
- DetailsViewPagerRow.cs
- DBCommand.cs
- SizeConverter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TextBoxLine.cs
- PngBitmapDecoder.cs
- Border.cs
- DataGridViewRowCollection.cs
- XmlAttributes.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataGridViewComboBoxColumn.cs
- DataGridTextBoxColumn.cs
- XsltSettings.cs
- SqlStream.cs
- QilXmlReader.cs
- HttpServerUtilityWrapper.cs
- StyleCollection.cs
- XmlComment.cs
- ParameterToken.cs
- WebHeaderCollection.cs
- Pen.cs
- TextSchema.cs
- DesignTimeDataBinding.cs
- InstanceData.cs
- ControlSerializer.cs
- SHA512.cs
- ProxyManager.cs
- CodeDefaultValueExpression.cs
- DataConnectionHelper.cs
- StrokeNode.cs
- TrackingMemoryStream.cs
- BigInt.cs
- RulePatternOps.cs
- DesignTableCollection.cs
- HttpApplicationFactory.cs
- TargetControlTypeAttribute.cs
- HttpListenerResponse.cs
- HttpCookie.cs
- AutoResetEvent.cs
- MouseWheelEventArgs.cs
- XsltCompileContext.cs
- FreezableOperations.cs
- ExecutionContext.cs
- ContentFileHelper.cs
- FormatException.cs
- CollectionChangeEventArgs.cs
- TreeViewItemAutomationPeer.cs
- CodeTypeDelegate.cs
- Keyboard.cs
- ParameterCollection.cs
- Helper.cs
- TriggerBase.cs
- FilterQueryOptionExpression.cs
- X509Certificate.cs
- VirtualizingStackPanel.cs
- SectionUpdates.cs
- HierarchicalDataSourceControl.cs
- NGCUIElementCollectionSerializerAsync.cs
- Comparer.cs
- CancellationToken.cs
- ListViewInsertEventArgs.cs
- ValidationErrorCollection.cs
- ClientTarget.cs
- QueryRewriter.cs