Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1305600 / 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
- FullTextState.cs
- DataGridViewMethods.cs
- StreamInfo.cs
- ExtentCqlBlock.cs
- RowVisual.cs
- InvalidComObjectException.cs
- SafeEventLogWriteHandle.cs
- DbCommandTree.cs
- Application.cs
- HttpInputStream.cs
- UniqueContractNameValidationBehavior.cs
- UpdateRecord.cs
- SecuritySessionSecurityTokenProvider.cs
- TabPage.cs
- InputLanguageSource.cs
- CodeMethodInvokeExpression.cs
- Rule.cs
- CfgRule.cs
- CompModSwitches.cs
- SizeKeyFrameCollection.cs
- EntityTemplateUserControl.cs
- TextElementEnumerator.cs
- BinaryReader.cs
- XPathBinder.cs
- SystemSounds.cs
- Helper.cs
- SiteMembershipCondition.cs
- StrokeCollection2.cs
- ProtectedConfigurationSection.cs
- EventItfInfo.cs
- NoClickablePointException.cs
- Point3DCollection.cs
- OpenTypeLayout.cs
- Debug.cs
- RequestQueryProcessor.cs
- SubpageParaClient.cs
- StaticExtensionConverter.cs
- ToolBarButton.cs
- CompositeTypefaceMetrics.cs
- CompModHelpers.cs
- SymmetricKey.cs
- TreeViewItem.cs
- SafeArrayTypeMismatchException.cs
- LexicalChunk.cs
- PeerNearMe.cs
- HttpHostedTransportConfiguration.cs
- ContentOperations.cs
- objectquery_tresulttype.cs
- HitTestParameters3D.cs
- GridViewColumn.cs
- HttpCookieCollection.cs
- DataRowView.cs
- IfAction.cs
- XsdBuildProvider.cs
- StringCollection.cs
- ShaperBuffers.cs
- VarRefManager.cs
- CollectionConverter.cs
- NotifyIcon.cs
- PageContentAsyncResult.cs
- ParentUndoUnit.cs
- DataBoundControl.cs
- webproxy.cs
- GroupQuery.cs
- Matrix3D.cs
- DynamicPropertyReader.cs
- APCustomTypeDescriptor.cs
- ContentPlaceHolder.cs
- AutoGeneratedField.cs
- ReadOnlyDictionary.cs
- ObjectDataSourceFilteringEventArgs.cs
- CallbackValidator.cs
- WebBrowserUriTypeConverter.cs
- ComEventsMethod.cs
- LineInfo.cs
- _HeaderInfoTable.cs
- COAUTHINFO.cs
- ToolboxComponentsCreatingEventArgs.cs
- DynamicUpdateCommand.cs
- SafeCryptContextHandle.cs
- TextEditorTables.cs
- WebReferenceCollection.cs
- RegexWriter.cs
- BooleanProjectedSlot.cs
- ContextDataSourceView.cs
- PaintEvent.cs
- TextDecorationLocationValidation.cs
- ForEach.cs
- BrushConverter.cs
- SchemeSettingElementCollection.cs
- BlurBitmapEffect.cs
- FeatureSupport.cs
- PresentationTraceSources.cs
- AutomationPropertyInfo.cs
- PackagingUtilities.cs
- HitTestResult.cs
- BindableAttribute.cs
- SqlDependencyUtils.cs
- DictionarySectionHandler.cs
- ObjectFullSpanRewriter.cs