Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1 / 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
- XPathPatternBuilder.cs
- SmtpNegotiateAuthenticationModule.cs
- WebPartDescription.cs
- CryptoProvider.cs
- OperatingSystemVersionCheck.cs
- XmlSchemaComplexType.cs
- Ref.cs
- BackgroundWorker.cs
- XmlTextWriter.cs
- PolyQuadraticBezierSegment.cs
- WebHttpSecurityModeHelper.cs
- PriorityChain.cs
- ResizeGrip.cs
- RequestCacheEntry.cs
- BinaryFormatterSinks.cs
- DispatchRuntime.cs
- XmlSchemaSimpleTypeList.cs
- XPathNode.cs
- DictionarySectionHandler.cs
- SignedXmlDebugLog.cs
- UnsafeNativeMethods.cs
- ListSortDescription.cs
- SingleKeyFrameCollection.cs
- SessionEndingCancelEventArgs.cs
- SurrogateDataContract.cs
- MissingSatelliteAssemblyException.cs
- WebPartZone.cs
- ChannelBase.cs
- Rect.cs
- PerformanceCounterManager.cs
- FormViewDeleteEventArgs.cs
- ErrorItem.cs
- EmbeddedMailObject.cs
- XmlChildEnumerator.cs
- KeyGesture.cs
- AliasExpr.cs
- FixedSOMTableCell.cs
- SpinLock.cs
- VariableQuery.cs
- BigInt.cs
- WebPartAddingEventArgs.cs
- SynchronizationContext.cs
- Interop.cs
- BookmarkUndoUnit.cs
- InputLanguageManager.cs
- SimpleWebHandlerParser.cs
- hwndwrapper.cs
- AttributeQuery.cs
- EncodingInfo.cs
- VisualStyleRenderer.cs
- DeflateStreamAsyncResult.cs
- WebPartMenu.cs
- ForeignConstraint.cs
- HandleRef.cs
- ChildrenQuery.cs
- ActivityDelegate.cs
- DistributedTransactionPermission.cs
- TypeConverterAttribute.cs
- LinkDescriptor.cs
- ChangeNode.cs
- SoapReflectionImporter.cs
- _StreamFramer.cs
- _BufferOffsetSize.cs
- CheckBox.cs
- TemplateControlBuildProvider.cs
- ImpersonateTokenRef.cs
- DataObjectCopyingEventArgs.cs
- DocumentApplication.cs
- ZoneIdentityPermission.cs
- DeferrableContent.cs
- WeakRefEnumerator.cs
- ColorBlend.cs
- PartialArray.cs
- DurableInstance.cs
- ReachUIElementCollectionSerializer.cs
- DataFormats.cs
- RawStylusSystemGestureInputReport.cs
- QilGeneratorEnv.cs
- SourceFileBuildProvider.cs
- TypeLibraryHelper.cs
- StrokeNode.cs
- ConstNode.cs
- DateTimeUtil.cs
- DES.cs
- _OSSOCK.cs
- MetadataItemSerializer.cs
- OleDbReferenceCollection.cs
- IsolatedStorageException.cs
- EllipticalNodeOperations.cs
- NetworkInformationPermission.cs
- RecognitionEventArgs.cs
- _NegoState.cs
- QilXmlReader.cs
- Visitor.cs
- LiteralControl.cs
- WebPartEditorOkVerb.cs
- ListControlConvertEventArgs.cs
- WindowsAuthenticationModule.cs
- DataTableTypeConverter.cs
- StickyNoteHelper.cs