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
- HashCodeCombiner.cs
- SetterBaseCollection.cs
- AppearanceEditorPart.cs
- DataGridPagerStyle.cs
- DbSetClause.cs
- Win32SafeHandles.cs
- DefaultTraceListener.cs
- DecimalMinMaxAggregationOperator.cs
- EnumConverter.cs
- CheckoutException.cs
- EllipseGeometry.cs
- InputLanguageProfileNotifySink.cs
- UIElement3D.cs
- TransactionChannelListener.cs
- ParameterModifier.cs
- Queue.cs
- AuthenticationSection.cs
- TdsParserStaticMethods.cs
- EventLogPermission.cs
- TypedCompletedAsyncResult.cs
- ADMembershipUser.cs
- RadioButtonStandardAdapter.cs
- InvalidPropValue.cs
- DataGridViewCellValidatingEventArgs.cs
- CodeNamespaceCollection.cs
- TextElementAutomationPeer.cs
- TextChangedEventArgs.cs
- basenumberconverter.cs
- StatusBarItemAutomationPeer.cs
- Stopwatch.cs
- SQLString.cs
- SoapIgnoreAttribute.cs
- BitmapDownload.cs
- ExpressionVisitorHelpers.cs
- CodeSnippetTypeMember.cs
- CodeSpit.cs
- AccessKeyManager.cs
- PixelFormatConverter.cs
- DispatchWrapper.cs
- InputLanguageManager.cs
- AnnotationAdorner.cs
- processwaithandle.cs
- File.cs
- NetworkStream.cs
- COM2EnumConverter.cs
- SelectedDatesCollection.cs
- __ConsoleStream.cs
- DataGridClipboardHelper.cs
- DoneReceivingAsyncResult.cs
- HttpModuleAction.cs
- ObjectTypeMapping.cs
- XamlWrappingReader.cs
- ConfigurationElementCollection.cs
- LeaseManager.cs
- __FastResourceComparer.cs
- AtlasWeb.Designer.cs
- ToolStripContainer.cs
- Type.cs
- RectangleHotSpot.cs
- UnionCqlBlock.cs
- VisualStateManager.cs
- XmlValueConverter.cs
- CurrentChangingEventArgs.cs
- MemoryRecordBuffer.cs
- ServicePointManager.cs
- _LazyAsyncResult.cs
- Animatable.cs
- BitmapEffectDrawingContent.cs
- HttpServerVarsCollection.cs
- QueryContinueDragEvent.cs
- GridViewRowCollection.cs
- SelectionProviderWrapper.cs
- MulticastNotSupportedException.cs
- XpsResourcePolicy.cs
- ChildDocumentBlock.cs
- DecoderNLS.cs
- TimeZone.cs
- WaitForChangedResult.cs
- CategoriesDocumentFormatter.cs
- PageVisual.cs
- CodeIdentifier.cs
- ButtonBaseAutomationPeer.cs
- IsolatedStorageFileStream.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ToolboxItemSnapLineBehavior.cs
- HttpCachePolicy.cs
- TargetInvocationException.cs
- ProcessModule.cs
- PropertyOrder.cs
- LambdaCompiler.Generated.cs
- GridViewUpdatedEventArgs.cs
- RuleSetDialog.cs
- Catch.cs
- IUnknownConstantAttribute.cs
- TypeResolver.cs
- RichTextBox.cs
- ColorPalette.cs
- LoadedOrUnloadedOperation.cs
- IODescriptionAttribute.cs
- xmlsaver.cs