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
- LOSFormatter.cs
- BinaryExpression.cs
- HttpGetProtocolImporter.cs
- CommonObjectSecurity.cs
- Pointer.cs
- EntityParameter.cs
- dtdvalidator.cs
- NumberSubstitution.cs
- IncrementalReadDecoders.cs
- InvalidContentTypeException.cs
- Transactions.cs
- TimeZone.cs
- ProcessModuleDesigner.cs
- ColorTranslator.cs
- InputElement.cs
- DummyDataSource.cs
- Parameter.cs
- QueryOutputWriter.cs
- PropertyEntry.cs
- PageOrientation.cs
- SinglePageViewer.cs
- EntityDataSource.cs
- EnumerableRowCollectionExtensions.cs
- PerfCounters.cs
- UnsafeNativeMethods.cs
- SelectingProviderEventArgs.cs
- NativeMethods.cs
- GenericsNotImplementedException.cs
- CapabilitiesSection.cs
- SoapIncludeAttribute.cs
- CancelAsyncOperationRequest.cs
- PageAsyncTaskManager.cs
- PointHitTestResult.cs
- RegexCaptureCollection.cs
- EditorPartChrome.cs
- baseshape.cs
- DataGridTextBoxColumn.cs
- Variant.cs
- DllHostedComPlusServiceHost.cs
- SystemIdentity.cs
- DBCSCodePageEncoding.cs
- CheckBoxPopupAdapter.cs
- AmbientProperties.cs
- SymbolUsageManager.cs
- SliderAutomationPeer.cs
- XmlQueryContext.cs
- NameSpaceEvent.cs
- WmlPhoneCallAdapter.cs
- Trigger.cs
- SqlUdtInfo.cs
- QueryCacheKey.cs
- MarkupExtensionReturnTypeAttribute.cs
- SchemaImporter.cs
- SurrogateSelector.cs
- Attachment.cs
- WindowsListViewScroll.cs
- RedirectionProxy.cs
- RTLAwareMessageBox.cs
- EpmContentSerializerBase.cs
- TypedTableBaseExtensions.cs
- IHttpResponseInternal.cs
- TextFormatterContext.cs
- TimeSpanOrInfiniteConverter.cs
- FileDataSourceCache.cs
- SocketInformation.cs
- OLEDB_Enum.cs
- RealProxy.cs
- TimelineGroup.cs
- XmlAggregates.cs
- EntityProviderFactory.cs
- ObjectCacheSettings.cs
- EntityProxyFactory.cs
- RichTextBoxContextMenu.cs
- AuthorizationSection.cs
- SafeUserTokenHandle.cs
- TraceHwndHost.cs
- GridViewColumnHeader.cs
- DictionarySurrogate.cs
- PropertiesTab.cs
- JsonWriterDelegator.cs
- WebChannelFactory.cs
- GlyphingCache.cs
- IsolatedStorageFile.cs
- KeyboardEventArgs.cs
- MediaTimeline.cs
- InkCanvasInnerCanvas.cs
- UnmanagedMemoryStreamWrapper.cs
- Annotation.cs
- HyperLinkField.cs
- InstalledFontCollection.cs
- DataSourceCacheDurationConverter.cs
- ImageAutomationPeer.cs
- SqlDataSourceEnumerator.cs
- Annotation.cs
- ChangeBlockUndoRecord.cs
- DataGridItemEventArgs.cs
- SmiContext.cs
- DisableDpiAwarenessAttribute.cs
- AuthorizationRuleCollection.cs
- UnknownBitmapEncoder.cs