Code:
/ 4.0 / 4.0 / untmp / 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
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BaseCAMarshaler.cs
- ECDiffieHellmanCng.cs
- NetNamedPipeSecurityElement.cs
- SqlDependency.cs
- baseaxisquery.cs
- StaticDataManager.cs
- WebServiceErrorEvent.cs
- TextRunCacheImp.cs
- InputScope.cs
- ListParagraph.cs
- CompositeFontInfo.cs
- DataGridParentRows.cs
- UpdateDelegates.Generated.cs
- DataViewSetting.cs
- ToolStripDropDownButton.cs
- ScaleTransform.cs
- CustomError.cs
- ActivityExecutionContextCollection.cs
- TemplateBuilder.cs
- ContainerAction.cs
- DataSourceSelectArguments.cs
- CodeCommentStatementCollection.cs
- DesignerAutoFormat.cs
- ConfigXmlWhitespace.cs
- CollectionContainer.cs
- ConstrainedDataObject.cs
- DataGridViewEditingControlShowingEventArgs.cs
- MaskPropertyEditor.cs
- WebPartAuthorizationEventArgs.cs
- DocumentSequenceHighlightLayer.cs
- OleDbEnumerator.cs
- XmlProcessingInstruction.cs
- Rotation3D.cs
- GraphicsContext.cs
- _ShellExpression.cs
- SecurityStateEncoder.cs
- CommonDialog.cs
- UIElement3DAutomationPeer.cs
- EpmSyndicationContentDeSerializer.cs
- RuntimeResourceSet.cs
- oledbmetadatacolumnnames.cs
- NetPeerTcpBinding.cs
- MenuItemStyleCollection.cs
- IPipelineRuntime.cs
- HttpDebugHandler.cs
- IndentTextWriter.cs
- TypeBuilderInstantiation.cs
- XmlWrappingWriter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ClientSettingsStore.cs
- XmlDocument.cs
- TextBox.cs
- UnsafePeerToPeerMethods.cs
- DrawListViewColumnHeaderEventArgs.cs
- XhtmlCssHandler.cs
- MetadataSection.cs
- WebServiceHandlerFactory.cs
- UntrustedRecipientException.cs
- Track.cs
- ControlDesigner.cs
- IdleTimeoutMonitor.cs
- BaseProcessor.cs
- FormsAuthenticationCredentials.cs
- NameTable.cs
- EntityStoreSchemaGenerator.cs
- RangeBase.cs
- EntityDataSourceStatementEditor.cs
- Preprocessor.cs
- BitmapVisualManager.cs
- ProjectionPathSegment.cs
- RSAPKCS1SignatureDeformatter.cs
- SingleTagSectionHandler.cs
- SessionEndingEventArgs.cs
- ObservableDictionary.cs
- BreakSafeBase.cs
- XmlSchemaGroup.cs
- SymbolDocumentInfo.cs
- RelationshipEndMember.cs
- SR.cs
- AvTrace.cs
- SlipBehavior.cs
- BaseDataBoundControl.cs
- TerminatorSinks.cs
- Latin1Encoding.cs
- SR.Designer.cs
- ChangeInterceptorAttribute.cs
- FixedSOMPageConstructor.cs
- Visual3D.cs
- TemplateField.cs
- JoinCqlBlock.cs
- TreeNode.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- IOThreadScheduler.cs
- ADMembershipProvider.cs
- RecordsAffectedEventArgs.cs
- DataSourceXmlSubItemAttribute.cs
- Polyline.cs
- RegisteredScript.cs
- DataControlFieldCell.cs
- GridViewDeleteEventArgs.cs