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
- serverconfig.cs
- AttributeProviderAttribute.cs
- BypassElementCollection.cs
- SafeFileMappingHandle.cs
- HeaderedContentControl.cs
- SqlTriggerContext.cs
- SecurityPolicySection.cs
- FaultConverter.cs
- EntityModelSchemaGenerator.cs
- Rfc2898DeriveBytes.cs
- Accessible.cs
- Polygon.cs
- System.Data.OracleClient_BID.cs
- XmlDictionaryReaderQuotas.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DbConnectionFactory.cs
- XsdDateTime.cs
- FixedPageProcessor.cs
- AutomationEventArgs.cs
- ComponentConverter.cs
- DeobfuscatingStream.cs
- DropDownList.cs
- _SecureChannel.cs
- ExportOptions.cs
- SetterBase.cs
- MetadataSource.cs
- ParameterCollection.cs
- FileVersion.cs
- Listbox.cs
- NotifyInputEventArgs.cs
- EncryptedData.cs
- FixedSOMTable.cs
- Enlistment.cs
- X509ChainElement.cs
- InnerItemCollectionView.cs
- InvalidProgramException.cs
- ActivityIdHeader.cs
- ValidationErrorEventArgs.cs
- QuerySelectOp.cs
- ToolStripProgressBar.cs
- DateBoldEvent.cs
- PackWebResponse.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Utils.cs
- FrameworkContentElement.cs
- BasicHttpBinding.cs
- SoapSchemaExporter.cs
- DrawingServices.cs
- Hyperlink.cs
- ErrorHandler.cs
- SmtpFailedRecipientException.cs
- DataKeyArray.cs
- DetailsViewInsertedEventArgs.cs
- ConditionCollection.cs
- SettingsProperty.cs
- XPathPatternParser.cs
- VirtualPathData.cs
- AddInActivator.cs
- SqlCrossApplyToCrossJoin.cs
- LayoutEngine.cs
- SqlBulkCopy.cs
- StringArrayConverter.cs
- Int32Collection.cs
- WebPartEditorCancelVerb.cs
- EntityDataSourceMemberPath.cs
- CurrencyManager.cs
- PresentationTraceSources.cs
- PathTooLongException.cs
- DirectoryNotFoundException.cs
- PackWebRequestFactory.cs
- ActivationArguments.cs
- SerializationEventsCache.cs
- WizardSideBarListControlItemEventArgs.cs
- ProcessProtocolHandler.cs
- TypeSystemProvider.cs
- WebPartVerbCollection.cs
- OracleBinary.cs
- ImageListImage.cs
- HttpMethodAttribute.cs
- BindStream.cs
- CodeParameterDeclarationExpression.cs
- ObjectDataSourceMethodEventArgs.cs
- Rotation3DAnimation.cs
- TriggerActionCollection.cs
- UnsafeNativeMethods.cs
- TextDecorations.cs
- PopOutPanel.cs
- RotateTransform3D.cs
- EtwTrace.cs
- WebPartConnectionsDisconnectVerb.cs
- SqlDataAdapter.cs
- DbParameterCollection.cs
- PropertyManager.cs
- _StreamFramer.cs
- WindowPattern.cs
- AutomationAttributeInfo.cs
- MasterPageParser.cs
- ObjectDataProvider.cs
- DataGridTextBox.cs
- DataSysAttribute.cs