Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1305600 / TextDecorationLocationValidation.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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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
- WorkflowInstanceExtensionManager.cs
- FactoryRecord.cs
- DbgUtil.cs
- LineProperties.cs
- ObjectConverter.cs
- WebPartConnectionsEventArgs.cs
- DummyDataSource.cs
- ReadOnlyNameValueCollection.cs
- ArrayList.cs
- GridItemPattern.cs
- HttpWriter.cs
- RepeaterItemEventArgs.cs
- FixedTextSelectionProcessor.cs
- Setter.cs
- ErrorFormatterPage.cs
- BaseHashHelper.cs
- APCustomTypeDescriptor.cs
- Int32RectConverter.cs
- HijriCalendar.cs
- PersonalizationStateInfoCollection.cs
- ProfileInfo.cs
- ConsumerConnectionPoint.cs
- DataGridItemAttachedStorage.cs
- ContextMenu.cs
- WhereQueryOperator.cs
- EventDescriptorCollection.cs
- ExpandedWrapper.cs
- ExpressionConverter.cs
- TableCell.cs
- CmsUtils.cs
- ShaderEffect.cs
- NullableConverter.cs
- WorkflowRuntimeServiceElementCollection.cs
- InstanceDataCollectionCollection.cs
- EditableTreeList.cs
- QueueProcessor.cs
- BinaryObjectInfo.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Utils.cs
- SoapExtensionStream.cs
- ExceptionUtil.cs
- ConnectionStringSettings.cs
- HttpApplication.cs
- CodeDOMUtility.cs
- SoapIncludeAttribute.cs
- TypeConverter.cs
- Component.cs
- XPathMultyIterator.cs
- Query.cs
- Function.cs
- InvalidCastException.cs
- MobileUITypeEditor.cs
- XmlDownloadManager.cs
- GiveFeedbackEvent.cs
- TypeLibConverter.cs
- DataControlButton.cs
- DataSvcMapFile.cs
- ChannelServices.cs
- Mapping.cs
- CancellationState.cs
- QuinticEase.cs
- SoapFault.cs
- PropertyDescriptorGridEntry.cs
- TableParaClient.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- PersistenceContextEnlistment.cs
- BaseContextMenu.cs
- ChangeDirector.cs
- GeometryHitTestResult.cs
- LayoutEngine.cs
- XmlFormatWriterGenerator.cs
- keycontainerpermission.cs
- DBCSCodePageEncoding.cs
- TargetParameterCountException.cs
- AtomServiceDocumentSerializer.cs
- PackagePartCollection.cs
- PrimitiveDataContract.cs
- XmlBaseWriter.cs
- ProgressiveCrcCalculatingStream.cs
- SecondaryIndexList.cs
- DrawListViewSubItemEventArgs.cs
- VirtualDirectoryMapping.cs
- TypeDependencyAttribute.cs
- QilVisitor.cs
- ContainerSelectorActiveEvent.cs
- DateTimeHelper.cs
- SliderAutomationPeer.cs
- PartitionedDataSource.cs
- OpacityConverter.cs
- DebugHandleTracker.cs
- InfoCardSymmetricCrypto.cs
- TreeNodeBindingCollection.cs
- TryLoadRunnableWorkflowCommand.cs
- EditCommandColumn.cs
- ColorConverter.cs
- SingleResultAttribute.cs
- XmlTextAttribute.cs
- ConnectionsZoneDesigner.cs
- Int32Rect.cs
- FixedSOMTableRow.cs