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
- OperationAbortedException.cs
- ExpressionTable.cs
- configsystem.cs
- SynchronizedReadOnlyCollection.cs
- CorrelationManager.cs
- PermissionSetEnumerator.cs
- __ConsoleStream.cs
- Version.cs
- Int32CAMarshaler.cs
- DbInsertCommandTree.cs
- SecurityUniqueId.cs
- RubberbandSelector.cs
- RoutingExtensionElement.cs
- XmlDownloadManager.cs
- WsatProxy.cs
- DataGridViewComboBoxEditingControl.cs
- ReadOnlyMetadataCollection.cs
- ArcSegment.cs
- ChangeBlockUndoRecord.cs
- Viewport3DVisual.cs
- CqlLexer.cs
- AsmxEndpointPickerExtension.cs
- ComponentSerializationService.cs
- ObjectAssociationEndMapping.cs
- ServiceNameCollection.cs
- EditCommandColumn.cs
- SerialErrors.cs
- GeneralTransform3DGroup.cs
- CharacterShapingProperties.cs
- LinqDataSourceDisposeEventArgs.cs
- DataListItemCollection.cs
- RegexMatchCollection.cs
- CompiledXpathExpr.cs
- SQLDecimalStorage.cs
- InputEventArgs.cs
- ValueSerializer.cs
- GeometryModel3D.cs
- NetWebProxyFinder.cs
- JsonQNameDataContract.cs
- HttpValueCollection.cs
- CommentAction.cs
- FixedSOMGroup.cs
- MetadataCollection.cs
- XmlElementAttribute.cs
- __TransparentProxy.cs
- selecteditemcollection.cs
- CapiNative.cs
- GifBitmapEncoder.cs
- ActiveXContainer.cs
- RowBinding.cs
- ExpressionTextBox.xaml.cs
- SqlDataSourceQueryConverter.cs
- ArithmeticLiteral.cs
- InputGestureCollection.cs
- CorePropertiesFilter.cs
- LinqDataSourceHelper.cs
- ColumnResizeUndoUnit.cs
- DocumentViewerAutomationPeer.cs
- XslTransform.cs
- ToolStripDropDown.cs
- NetSectionGroup.cs
- UrlAuthorizationModule.cs
- DbProviderFactoriesConfigurationHandler.cs
- UInt16Converter.cs
- IUnknownConstantAttribute.cs
- SiteMapSection.cs
- SizeLimitedCache.cs
- ElementInit.cs
- ContainerSelectorBehavior.cs
- BinaryFormatterWriter.cs
- SessionEndedEventArgs.cs
- FlowchartSizeFeature.cs
- ShaderEffect.cs
- CodePageUtils.cs
- ButtonBase.cs
- VariableBinder.cs
- HybridObjectCache.cs
- Misc.cs
- CodeDomConfigurationHandler.cs
- RectangleHotSpot.cs
- Compiler.cs
- SessionEndingEventArgs.cs
- WizardStepBase.cs
- CapabilitiesRule.cs
- infer.cs
- CreateUserWizardStep.cs
- SizeChangedEventArgs.cs
- SafeCoTaskMem.cs
- SystemIPAddressInformation.cs
- MergeFilterQuery.cs
- FrameworkObject.cs
- DbProviderServices.cs
- SafePEFileHandle.cs
- ErrorWrapper.cs
- HostVisual.cs
- AutomationPattern.cs
- InvalidTimeZoneException.cs
- BitmapCodecInfo.cs
- AssemblyNameProxy.cs
- CodeDomSerializationProvider.cs