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
- Convert.cs
- JsonDataContract.cs
- RIPEMD160.cs
- WebBrowserDocumentCompletedEventHandler.cs
- PerCallInstanceContextProvider.cs
- DataGridClipboardCellContent.cs
- SpeechSynthesizer.cs
- StateElementCollection.cs
- SqlAggregateChecker.cs
- EntityCommand.cs
- DispatchChannelSink.cs
- XmlElementAttributes.cs
- TdsParserSessionPool.cs
- HTMLTextWriter.cs
- SurrogateEncoder.cs
- ContextMenuAutomationPeer.cs
- wpf-etw.cs
- RemoteCryptoTokenProvider.cs
- XMLSchema.cs
- PassportAuthentication.cs
- TcpAppDomainProtocolHandler.cs
- ManipulationDelta.cs
- WasEndpointConfigContainer.cs
- AdCreatedEventArgs.cs
- JumpTask.cs
- Int32.cs
- TextRangeSerialization.cs
- EntityTypeEmitter.cs
- input.cs
- _ConnectOverlappedAsyncResult.cs
- ToReply.cs
- Point4D.cs
- NameTable.cs
- XmlSchemaChoice.cs
- FlowLayoutPanel.cs
- DiscoveryInnerClientManaged11.cs
- Models.cs
- ImpersonateTokenRef.cs
- EarlyBoundInfo.cs
- NativeCompoundFileAPIs.cs
- FactoryId.cs
- BindingListCollectionView.cs
- XmlWriterSettings.cs
- GeometryHitTestParameters.cs
- TranslateTransform.cs
- SynchronousChannelMergeEnumerator.cs
- DBConnection.cs
- PropertiesTab.cs
- Event.cs
- TableCellAutomationPeer.cs
- ExpressionNormalizer.cs
- MsmqChannelFactory.cs
- AppSettingsExpressionBuilder.cs
- RadioButtonStandardAdapter.cs
- UrlMappingCollection.cs
- TextBox.cs
- COM2IDispatchConverter.cs
- AsyncOperation.cs
- DragEvent.cs
- WebPartZoneDesigner.cs
- DetailsView.cs
- CodeMemberEvent.cs
- IISUnsafeMethods.cs
- EditingMode.cs
- SnapLine.cs
- DesignerCommandSet.cs
- SapiRecoContext.cs
- UnionExpr.cs
- ProcessingInstructionAction.cs
- diagnosticsswitches.cs
- DataControlPagerLinkButton.cs
- AttachInfo.cs
- Nullable.cs
- GPPOINTF.cs
- BitmapEffectInputData.cs
- FeatureSupport.cs
- InstanceKey.cs
- GridViewRowPresenterBase.cs
- DataColumnPropertyDescriptor.cs
- ProtocolImporter.cs
- EpmAttributeNameBuilder.cs
- FixedBufferAttribute.cs
- TableColumn.cs
- PointConverter.cs
- PageContentAsyncResult.cs
- exports.cs
- OdbcEnvironment.cs
- ScriptResourceHandler.cs
- DispatcherExceptionFilterEventArgs.cs
- ConnectorSelectionGlyph.cs
- String.cs
- SerializerDescriptor.cs
- SmiEventSink_Default.cs
- KeyTimeConverter.cs
- FormattedTextSymbols.cs
- XmlIgnoreAttribute.cs
- EntityConnection.cs
- DynamicActivity.cs
- SerializationInfoEnumerator.cs
- TypeGeneratedEventArgs.cs