Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ModifiableIteratorCollection.cs
- AuthorizationContext.cs
- ChangeInterceptorAttribute.cs
- ControlType.cs
- CroppedBitmap.cs
- RichTextBoxContextMenu.cs
- SecUtil.cs
- SafeIUnknown.cs
- ToolStripProgressBar.cs
- OperationDescriptionCollection.cs
- SiteMapNode.cs
- HiddenField.cs
- IItemContainerGenerator.cs
- DataServiceQueryProvider.cs
- LinearQuaternionKeyFrame.cs
- FormViewInsertedEventArgs.cs
- ThaiBuddhistCalendar.cs
- OdbcConnection.cs
- IgnoreFlushAndCloseStream.cs
- ZoneLinkButton.cs
- MDIClient.cs
- UdpDiscoveryEndpoint.cs
- SocketAddress.cs
- SafeRightsManagementQueryHandle.cs
- LocatorPartList.cs
- DataAdapter.cs
- TransformationRules.cs
- BindingValueChangedEventArgs.cs
- TextContainerChangeEventArgs.cs
- InvalidCommandTreeException.cs
- DataGridDesigner.cs
- PerformanceCounterPermissionAttribute.cs
- BackgroundFormatInfo.cs
- ButtonStandardAdapter.cs
- TypeGeneratedEventArgs.cs
- PropertyItemInternal.cs
- OLEDB_Util.cs
- TimelineClockCollection.cs
- OutputScopeManager.cs
- Frame.cs
- CodeLabeledStatement.cs
- DbProviderConfigurationHandler.cs
- ZipFileInfoCollection.cs
- FolderLevelBuildProvider.cs
- WindowsTab.cs
- processwaithandle.cs
- StringInfo.cs
- ManagementClass.cs
- ParagraphVisual.cs
- WebPart.cs
- CreatingCookieEventArgs.cs
- CategoryGridEntry.cs
- ProgressBarRenderer.cs
- ActivationServices.cs
- ErrorTableItemStyle.cs
- SchemaComplexType.cs
- DataBoundControlAdapter.cs
- ObjectViewListener.cs
- SimplePropertyEntry.cs
- DataStorage.cs
- ObjectPersistData.cs
- Model3DGroup.cs
- Polyline.cs
- DiscreteKeyFrames.cs
- XmlSerializationReader.cs
- Context.cs
- ScriptReferenceEventArgs.cs
- Pens.cs
- StreamGeometry.cs
- StylusEventArgs.cs
- VisualTreeHelper.cs
- DynamicArgumentDialog.cs
- DataGridViewButtonCell.cs
- TreeNode.cs
- XmlIncludeAttribute.cs
- List.cs
- mactripleDES.cs
- HostingEnvironment.cs
- ECDiffieHellman.cs
- Assembly.cs
- ServiceHostingEnvironmentSection.cs
- SubstitutionResponseElement.cs
- StyleSelector.cs
- ParallelTimeline.cs
- DynamicValidatorEventArgs.cs
- OutOfProcStateClientManager.cs
- AutoGeneratedFieldProperties.cs
- DropTarget.cs
- WebServiceParameterData.cs
- LocalizableAttribute.cs
- Update.cs
- AssertSection.cs
- SemaphoreSecurity.cs
- Stylus.cs
- Brush.cs
- TextAdaptor.cs
- Psha1DerivedKeyGeneratorHelper.cs
- MessageQueuePermission.cs
- PathNode.cs
- UIElementParaClient.cs