Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1 / AlignmentXValidation.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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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
- XmlNamespaceMapping.cs
- FamilyMap.cs
- UdpAnnouncementEndpoint.cs
- CodeAttributeArgument.cs
- log.cs
- RuntimeEnvironment.cs
- ToolStripOverflow.cs
- ListBase.cs
- SecurityElement.cs
- StylusPointProperty.cs
- GlyphingCache.cs
- XsltLoader.cs
- PreProcessInputEventArgs.cs
- PictureBox.cs
- DataGridBeginningEditEventArgs.cs
- basevalidator.cs
- ProtocolsConfigurationEntry.cs
- QuaternionAnimationUsingKeyFrames.cs
- LongTypeConverter.cs
- FileDialog.cs
- sqlser.cs
- WebControlParameterProxy.cs
- DataGridRowClipboardEventArgs.cs
- SelectionWordBreaker.cs
- SqlProvider.cs
- SequentialOutput.cs
- QueryInterceptorAttribute.cs
- DataGridViewIntLinkedList.cs
- GAC.cs
- SiteMap.cs
- GPPOINTF.cs
- ReachDocumentReferenceSerializerAsync.cs
- XmlNodeComparer.cs
- NameScopePropertyAttribute.cs
- MenuItemStyleCollectionEditor.cs
- SequenceNumber.cs
- SystemIPv6InterfaceProperties.cs
- EpmAttributeNameBuilder.cs
- CriticalFinalizerObject.cs
- ReflectionServiceProvider.cs
- WebPartVerb.cs
- ReadOnlyPropertyMetadata.cs
- WinEventTracker.cs
- _AutoWebProxyScriptHelper.cs
- StyleSheetDesigner.cs
- XLinq.cs
- SafeRightsManagementHandle.cs
- BaseDataList.cs
- HttpSessionStateWrapper.cs
- DbExpressionBuilder.cs
- RuntimeCompatibilityAttribute.cs
- SettingsPropertyNotFoundException.cs
- StreamingContext.cs
- DesignTimeType.cs
- AvTraceDetails.cs
- TdsEnums.cs
- SqlFlattener.cs
- TextTrailingCharacterEllipsis.cs
- ResourceSet.cs
- LinqDataSourceView.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- AuthenticationModuleElementCollection.cs
- PropertyChange.cs
- Group.cs
- CategoryAttribute.cs
- CodeStatement.cs
- SystemDiagnosticsSection.cs
- InfoCardBinaryReader.cs
- DataBindEngine.cs
- DelayedRegex.cs
- KeyValuePair.cs
- SkipQueryOptionExpression.cs
- TemplatedWizardStep.cs
- XmlSchemaAppInfo.cs
- WebPartTracker.cs
- TransformCryptoHandle.cs
- DropSourceBehavior.cs
- TraceSwitch.cs
- XslCompiledTransform.cs
- EventDescriptorCollection.cs
- BaseTreeIterator.cs
- VisualTreeUtils.cs
- Axis.cs
- ProgressBarAutomationPeer.cs
- TableDetailsCollection.cs
- DataGridViewRowsRemovedEventArgs.cs
- WindowsFormsSectionHandler.cs
- MSAAWinEventWrap.cs
- DataGridColumnDropSeparator.cs
- RuleSettingsCollection.cs
- IDispatchConstantAttribute.cs
- NavigationFailedEventArgs.cs
- JsonQNameDataContract.cs
- IChannel.cs
- TokenBasedSetEnumerator.cs
- ToolStripPanelSelectionGlyph.cs
- WebReferencesBuildProvider.cs
- ComponentResourceKeyConverter.cs
- CryptoHandle.cs
- DbDataAdapter.cs