Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1 / AlignmentYValidation.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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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
- AbstractDataSvcMapFileLoader.cs
- IItemContainerGenerator.cs
- ZeroOpNode.cs
- UICuesEvent.cs
- StringHelper.cs
- Switch.cs
- EntityContainer.cs
- AvTraceDetails.cs
- Material.cs
- DataGridViewRowPrePaintEventArgs.cs
- InputMethod.cs
- XmlObjectSerializerContext.cs
- FacetDescription.cs
- TextTreeTextBlock.cs
- Timer.cs
- Overlapped.cs
- WsdlEndpointConversionContext.cs
- Binding.cs
- SystemEvents.cs
- ArgumentException.cs
- Window.cs
- ObjectListCommandsPage.cs
- PathGeometry.cs
- RefreshPropertiesAttribute.cs
- AsyncResult.cs
- TraceUtils.cs
- ProtocolsInstallComponent.cs
- WindowsContainer.cs
- InlineObject.cs
- DictionaryManager.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ArithmeticException.cs
- safelinkcollection.cs
- OperationCanceledException.cs
- ValidatedControlConverter.cs
- TreeChangeInfo.cs
- ObjectViewFactory.cs
- SearchForVirtualItemEventArgs.cs
- FormViewInsertEventArgs.cs
- ComponentSerializationService.cs
- ButtonRenderer.cs
- HandleCollector.cs
- ScrollData.cs
- ListManagerBindingsCollection.cs
- OptionUsage.cs
- MessageQueuePermissionEntryCollection.cs
- CodeObjectCreateExpression.cs
- TdsParserSessionPool.cs
- BamlStream.cs
- RandomNumberGenerator.cs
- COM2ColorConverter.cs
- AppDomainUnloadedException.cs
- ClusterSafeNativeMethods.cs
- HttpDebugHandler.cs
- FullTextState.cs
- RecordsAffectedEventArgs.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- XsltSettings.cs
- SqlDataSourceView.cs
- ArraySortHelper.cs
- BindingExpression.cs
- StandardCommands.cs
- XmlChoiceIdentifierAttribute.cs
- ClientCultureInfo.cs
- CategoryValueConverter.cs
- EventProviderBase.cs
- SqlCommandSet.cs
- safex509handles.cs
- TypeToArgumentTypeConverter.cs
- JapaneseCalendar.cs
- ComboBoxRenderer.cs
- RegexBoyerMoore.cs
- OpenFileDialog.cs
- XmlDataSourceView.cs
- SecureStringHasher.cs
- PageTheme.cs
- TableCellCollection.cs
- ActivityPreviewDesigner.cs
- DataGridViewRowEventArgs.cs
- SqlMetaData.cs
- HashCodeCombiner.cs
- SelectedDatesCollection.cs
- CatalogZoneBase.cs
- DataGridViewColumnEventArgs.cs
- KnownIds.cs
- BitmapData.cs
- InputProcessorProfilesLoader.cs
- AvTraceFormat.cs
- IdleTimeoutMonitor.cs
- ReadOnlyDataSourceView.cs
- DefaultMemberAttribute.cs
- XmlQueryCardinality.cs
- XmlSchema.cs
- ClientCredentialsSecurityTokenManager.cs
- HttpResponse.cs
- LockCookie.cs
- ExpressionPrefixAttribute.cs
- dbenumerator.cs
- ToolboxBitmapAttribute.cs
- BatchParser.cs