Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- FlowDocument.cs
- DesignerForm.cs
- NavigationProperty.cs
- IxmlLineInfo.cs
- ContextMenuStrip.cs
- DeclaredTypeElementCollection.cs
- UnsafeNativeMethods.cs
- DelegateSerializationHolder.cs
- DbProviderFactories.cs
- PrtCap_Base.cs
- Cloud.cs
- QueryValue.cs
- ObjectListComponentEditor.cs
- SoapAttributeAttribute.cs
- Sql8ConformanceChecker.cs
- OletxTransactionHeader.cs
- CheckBoxField.cs
- TaskResultSetter.cs
- InternalDuplexChannelFactory.cs
- ObjectFullSpanRewriter.cs
- XmlSchemaImporter.cs
- ExpressionEditorAttribute.cs
- CompositionAdorner.cs
- ServiceManager.cs
- WebPartEditorApplyVerb.cs
- InfiniteTimeSpanConverter.cs
- path.cs
- SortQuery.cs
- TdsParserSessionPool.cs
- MimeMultiPart.cs
- EntityCommand.cs
- StandardToolWindows.cs
- XmlDocument.cs
- AssociationSetEnd.cs
- WebPartEditorCancelVerb.cs
- HttpResponseInternalWrapper.cs
- WhitespaceRuleReader.cs
- DataGridItemEventArgs.cs
- DefaultBinder.cs
- SingleAnimationUsingKeyFrames.cs
- WebPartCollection.cs
- SafeLocalMemHandle.cs
- SynchronizationLockException.cs
- WebPartEditVerb.cs
- TraceHandlerErrorFormatter.cs
- PersonalizationDictionary.cs
- Rectangle.cs
- FixedPosition.cs
- LinqDataSourceDisposeEventArgs.cs
- SafeNativeMethods.cs
- Base64WriteStateInfo.cs
- Encoder.cs
- Pens.cs
- ExpressionTable.cs
- PngBitmapEncoder.cs
- Statements.cs
- StoreContentChangedEventArgs.cs
- CalendarDataBindingHandler.cs
- ObjectAssociationEndMapping.cs
- PointAnimationClockResource.cs
- GeneralTransform3DTo2D.cs
- RewritingValidator.cs
- DataPager.cs
- TreeIterators.cs
- NameValuePermission.cs
- ILGenerator.cs
- SqlCommandBuilder.cs
- MsmqTransportReceiveParameters.cs
- ToolStripDropDownClosingEventArgs.cs
- EncryptedPackageFilter.cs
- _SpnDictionary.cs
- Msec.cs
- Int32Converter.cs
- ContentFilePart.cs
- EntityCommandDefinition.cs
- WebHostScriptMappingsInstallComponent.cs
- CodeIndexerExpression.cs
- RSAOAEPKeyExchangeFormatter.cs
- BindingList.cs
- DbParameterCollectionHelper.cs
- IdentityReference.cs
- RuleSettingsCollection.cs
- KerberosSecurityTokenProvider.cs
- SelectionEditingBehavior.cs
- XmlTextReaderImplHelpers.cs
- IISUnsafeMethods.cs
- PageHandlerFactory.cs
- InputProcessorProfiles.cs
- XmlStreamStore.cs
- Misc.cs
- SiteMap.cs
- DataConnectionHelper.cs
- SecurityPolicySection.cs
- AnchoredBlock.cs
- XmlChoiceIdentifierAttribute.cs
- XmlILIndex.cs
- EventDescriptor.cs
- _CacheStreams.cs
- SeekableReadStream.cs
- AddingNewEventArgs.cs