Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1305600 / AlignmentXValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProtocolsConfiguration.cs
- XappLauncher.cs
- SafeNativeMethods.cs
- Dispatcher.cs
- AQNBuilder.cs
- ExtensionQuery.cs
- CanonicalFontFamilyReference.cs
- FastPropertyAccessor.cs
- BaseInfoTable.cs
- LocalFileSettingsProvider.cs
- ConfigurationSectionHelper.cs
- DataGridViewToolTip.cs
- InitializationEventAttribute.cs
- NamedObject.cs
- GridItemProviderWrapper.cs
- DynamicValueConverter.cs
- PropertyGrid.cs
- CodeMemberField.cs
- StrongTypingException.cs
- XsdDuration.cs
- VisualProxy.cs
- StrongNameMembershipCondition.cs
- ProxyWebPartConnectionCollection.cs
- DocumentScope.cs
- DataFieldCollectionEditor.cs
- HScrollProperties.cs
- DecimalConstantAttribute.cs
- WebPartTracker.cs
- SoapObjectInfo.cs
- HttpProfileGroupBase.cs
- TreeBuilder.cs
- OnOperation.cs
- LabelEditEvent.cs
- CompatibleIComparer.cs
- EntityObject.cs
- Serializer.cs
- Rect3DConverter.cs
- HttpApplication.cs
- jithelpers.cs
- ServicePerformanceCounters.cs
- OrderedDictionaryStateHelper.cs
- HtmlElementErrorEventArgs.cs
- HwndMouseInputProvider.cs
- OperationSelectorBehavior.cs
- TextReader.cs
- Debug.cs
- DataGridItem.cs
- BufferedOutputStream.cs
- ErrorFormatterPage.cs
- OptimalTextSource.cs
- WinEventWrap.cs
- Command.cs
- OdbcTransaction.cs
- RegisteredDisposeScript.cs
- EntityTemplateUserControl.cs
- ThreadStaticAttribute.cs
- MSAANativeProvider.cs
- RepeaterItem.cs
- QueueProcessor.cs
- ExpressionBuilder.cs
- CodePageEncoding.cs
- KnownBoxes.cs
- AppDomainShutdownMonitor.cs
- XmlDataSourceNodeDescriptor.cs
- CompressionTransform.cs
- WpfKnownTypeInvoker.cs
- WindowsListViewGroup.cs
- _OverlappedAsyncResult.cs
- ConnectionPoolRegistry.cs
- HostedNamedPipeTransportManager.cs
- PointLight.cs
- BulletedList.cs
- HttpInputStream.cs
- WindowsNonControl.cs
- ResXBuildProvider.cs
- errorpatternmatcher.cs
- CounterSampleCalculator.cs
- ExtensionQuery.cs
- WrapPanel.cs
- FilteredDataSetHelper.cs
- DataGridViewImageCell.cs
- ConfigLoader.cs
- UntrustedRecipientException.cs
- DataSourceXmlTextReader.cs
- XmlSchemaElement.cs
- DesignerAutoFormatStyle.cs
- AutomationFocusChangedEventArgs.cs
- EventLogPropertySelector.cs
- EntityDataSourceView.cs
- QueuePropertyVariants.cs
- WindowsToolbarAsMenu.cs
- InternalTypeHelper.cs
- WindowsRichEdit.cs
- RadioButtonStandardAdapter.cs
- GridViewRowCollection.cs
- CompilerWrapper.cs
- xmlformatgeneratorstatics.cs
- ProgressBar.cs
- BrushMappingModeValidation.cs
- LogicalTreeHelper.cs