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
- RepeatButtonAutomationPeer.cs
- TableLayoutStyleCollection.cs
- XmlBinaryReader.cs
- Propagator.Evaluator.cs
- WebPartManager.cs
- SafeProcessHandle.cs
- ValidationError.cs
- WmpBitmapEncoder.cs
- PropertyConverter.cs
- RadioButton.cs
- ArrangedElement.cs
- ThemeDirectoryCompiler.cs
- ValueOfAction.cs
- ProfessionalColorTable.cs
- TextRangeSerialization.cs
- AttachInfo.cs
- CodeTypeDeclarationCollection.cs
- WindowsStatusBar.cs
- PropertyMetadata.cs
- SizeAnimation.cs
- ProfilePropertySettingsCollection.cs
- JsonServiceDocumentSerializer.cs
- ClientTargetCollection.cs
- MSAANativeProvider.cs
- DataGridColumnDropSeparator.cs
- PreviewPrintController.cs
- InstalledVoice.cs
- ProxySimple.cs
- UseLicense.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TransactionChannel.cs
- DataSourceXmlSerializationAttribute.cs
- HeaderFilter.cs
- EventTrigger.cs
- TextPointerBase.cs
- WeakEventTable.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FileReservationCollection.cs
- Missing.cs
- WebPartHelpVerb.cs
- XmlEventCache.cs
- ImageCodecInfo.cs
- ObfuscateAssemblyAttribute.cs
- CounterSetInstanceCounterDataSet.cs
- EntityDataSourceDataSelectionPanel.cs
- XmlAnyAttributeAttribute.cs
- DefaultEventAttribute.cs
- CertificateReferenceElement.cs
- ILGenerator.cs
- ZoneButton.cs
- EntityCommandExecutionException.cs
- URLAttribute.cs
- InputLangChangeEvent.cs
- DocumentViewerBaseAutomationPeer.cs
- FixedFindEngine.cs
- AccessorTable.cs
- MachineKeyValidationConverter.cs
- XmlSignificantWhitespace.cs
- SourceFileBuildProvider.cs
- CaseInsensitiveHashCodeProvider.cs
- DriveNotFoundException.cs
- AnonymousIdentificationModule.cs
- ProtocolsConfiguration.cs
- SelectedDatesCollection.cs
- HWStack.cs
- PresentationTraceSources.cs
- ToolStripSeparator.cs
- VariantWrapper.cs
- CaseStatementSlot.cs
- XmlEventCache.cs
- DataGridHelper.cs
- ContextMenu.cs
- Pen.cs
- OraclePermission.cs
- DateTimeConverter2.cs
- EntityCommandExecutionException.cs
- DelayedRegex.cs
- RuntimeHandles.cs
- ArcSegment.cs
- PassportAuthenticationModule.cs
- PeerPresenceInfo.cs
- BuildManager.cs
- QueryStringParameter.cs
- SqlDataSourceStatusEventArgs.cs
- SelectionHighlightInfo.cs
- TextBox.cs
- TextCompositionEventArgs.cs
- TextModifierScope.cs
- EncoderParameter.cs
- XPathAncestorIterator.cs
- TextEditorTables.cs
- ProtocolsConfiguration.cs
- CursorEditor.cs
- ObjectStateEntry.cs
- PolicyManager.cs
- ScriptMethodAttribute.cs
- EditCommandColumn.cs
- SortedList.cs
- TimeSpanStorage.cs
- Int32Storage.cs