Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ParserStreamGeometryContext.cs
- DrawItemEvent.cs
- TextEditorDragDrop.cs
- TextRunCacheImp.cs
- PositiveTimeSpanValidatorAttribute.cs
- DataSourceProvider.cs
- TableParaClient.cs
- DateTimeValueSerializerContext.cs
- ExtensionDataReader.cs
- PointHitTestParameters.cs
- CellPartitioner.cs
- Track.cs
- DropSource.cs
- PolicyManager.cs
- ObjectSecurity.cs
- ActionItem.cs
- Attributes.cs
- Ref.cs
- ActivityInstance.cs
- InputProviderSite.cs
- NativeMethods.cs
- DecimalMinMaxAggregationOperator.cs
- FilterQueryOptionExpression.cs
- FormViewPagerRow.cs
- XsltInput.cs
- ClientRoleProvider.cs
- InteropTrackingRecord.cs
- DataKey.cs
- TemplatedAdorner.cs
- ExpressionEditorSheet.cs
- NamespaceEmitter.cs
- XmlAttribute.cs
- QuaternionAnimation.cs
- NavigationEventArgs.cs
- ProcessThreadDesigner.cs
- Clipboard.cs
- ObjectSecurity.cs
- Classification.cs
- ButtonFlatAdapter.cs
- RequestQueue.cs
- DataColumnChangeEvent.cs
- NetNamedPipeBindingElement.cs
- ToolStripRenderEventArgs.cs
- mansign.cs
- SqlDataSourceSelectingEventArgs.cs
- TreeViewHitTestInfo.cs
- SingleConverter.cs
- NativeMethods.cs
- DbMetaDataCollectionNames.cs
- StatusBar.cs
- FilteredSchemaElementLookUpTable.cs
- VerticalAlignConverter.cs
- Geometry3D.cs
- RewritingProcessor.cs
- MenuItemBinding.cs
- ConstraintManager.cs
- CurrencyWrapper.cs
- XmlTypeMapping.cs
- PagesSection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- GlobalDataBindingHandler.cs
- TablePatternIdentifiers.cs
- ApplyImportsAction.cs
- ParentQuery.cs
- Deflater.cs
- DetailsViewUpdatedEventArgs.cs
- GlyphingCache.cs
- ProfileGroupSettings.cs
- MultipartContentParser.cs
- XNameConverter.cs
- ContentHostHelper.cs
- SynchronizingStream.cs
- XmlSchemaObject.cs
- TableProvider.cs
- ResolveCriteria.cs
- XPathDocumentBuilder.cs
- ConfigurationElementCollection.cs
- FormCollection.cs
- WebPartAddingEventArgs.cs
- UIAgentCrashedException.cs
- LiteralControl.cs
- DataSourceHelper.cs
- MoveSizeWinEventHandler.cs
- SelectionEditingBehavior.cs
- PageWrapper.cs
- ConnectionOrientedTransportChannelFactory.cs
- SectionUpdates.cs
- CheckBoxRenderer.cs
- Operator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MouseCaptureWithinProperty.cs
- ImageClickEventArgs.cs
- MatrixCamera.cs
- HttpDictionary.cs
- CharacterShapingProperties.cs
- XpsSerializationException.cs
- SqlDependencyListener.cs
- ScriptRef.cs
- NativeObjectSecurity.cs
- DocumentApplicationState.cs