Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PointLightBase.cs
- M3DUtil.cs
- CodeDefaultValueExpression.cs
- ToolStripRenderer.cs
- FontFamilyIdentifier.cs
- ResourceContainer.cs
- unsafenativemethodsother.cs
- PointHitTestResult.cs
- BindingRestrictions.cs
- StrongName.cs
- ToolStrip.cs
- Function.cs
- StickyNoteAnnotations.cs
- ApplicationException.cs
- _UriSyntax.cs
- OpenTypeLayout.cs
- FileDialog.cs
- BmpBitmapEncoder.cs
- OleDbStruct.cs
- Configuration.cs
- PointAnimationUsingPath.cs
- WinFormsComponentEditor.cs
- Logging.cs
- BinaryParser.cs
- Function.cs
- RoleServiceManager.cs
- FileSystemWatcher.cs
- BasicBrowserDialog.designer.cs
- DeadLetterQueue.cs
- AutomationEvent.cs
- PeerNameRegistration.cs
- OleDbConnection.cs
- Icon.cs
- StreamMarshaler.cs
- Debug.cs
- LeaseManager.cs
- BufferModesCollection.cs
- RtfFormatStack.cs
- LineUtil.cs
- XsltContext.cs
- InternalTypeHelper.cs
- ActivityTypeCodeDomSerializer.cs
- XmlSchemaSimpleTypeUnion.cs
- IdentityHolder.cs
- BinaryObjectReader.cs
- TransformConverter.cs
- Config.cs
- EUCJPEncoding.cs
- UInt16Storage.cs
- SmtpNtlmAuthenticationModule.cs
- FederatedMessageSecurityOverHttp.cs
- PeerTransportSecurityElement.cs
- Panel.cs
- ExpressionQuoter.cs
- EdmComplexPropertyAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- CdpEqualityComparer.cs
- PresentationSource.cs
- HtmlTernaryTree.cs
- CodeEventReferenceExpression.cs
- DataGridTable.cs
- MenuItemCollection.cs
- SqlParameterizer.cs
- TempFiles.cs
- SeekStoryboard.cs
- ByteAnimationBase.cs
- WebBrowserBase.cs
- StaticDataManager.cs
- OrderedEnumerableRowCollection.cs
- QuadraticBezierSegment.cs
- EditorPart.cs
- Point3DCollection.cs
- PrefixHandle.cs
- PlainXmlSerializer.cs
- SafeBuffer.cs
- SoapHeaderAttribute.cs
- HttpApplicationFactory.cs
- TextServicesCompartmentContext.cs
- DesignTimeTemplateParser.cs
- DataGridViewImageCell.cs
- COM2IProvidePropertyBuilderHandler.cs
- ActivityMarkupSerializationProvider.cs
- TypeRefElement.cs
- StringToken.cs
- embossbitmapeffect.cs
- XmlDataSourceView.cs
- StoreAnnotationsMap.cs
- DataGridSortCommandEventArgs.cs
- LogFlushAsyncResult.cs
- Schema.cs
- QueryContinueDragEvent.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- Win32.cs
- ListViewItem.cs
- XmlTextAttribute.cs
- NetTcpSection.cs
- AuthenticatedStream.cs
- DataServiceExpressionVisitor.cs
- SchemaImporterExtensionsSection.cs
- CodeDefaultValueExpression.cs