Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- X509Utils.cs
- SspiNegotiationTokenAuthenticator.cs
- AmbiguousMatchException.cs
- LayoutUtils.cs
- PersonalizationAdministration.cs
- Compensation.cs
- ListParaClient.cs
- ImageCodecInfo.cs
- StaticFileHandler.cs
- SiteMapNode.cs
- WeakReference.cs
- TypedTableBase.cs
- Deflater.cs
- SafeWaitHandle.cs
- EasingQuaternionKeyFrame.cs
- DataContractSerializerMessageContractImporter.cs
- TileModeValidation.cs
- PropertyReferenceSerializer.cs
- DoubleLinkList.cs
- DataRowExtensions.cs
- ProfileEventArgs.cs
- MediaElementAutomationPeer.cs
- TypeSystem.cs
- Rotation3DAnimationBase.cs
- TextRangeAdaptor.cs
- OpenFileDialog.cs
- CodeDomComponentSerializationService.cs
- ProgressChangedEventArgs.cs
- Psha1DerivedKeyGenerator.cs
- DataGridColumnCollection.cs
- BamlBinaryReader.cs
- BitmapFrameEncode.cs
- Identifier.cs
- InstanceValue.cs
- TCPListener.cs
- BaseValidator.cs
- SQLUtility.cs
- FlowSwitchDesigner.xaml.cs
- Win32Exception.cs
- HtmlInputHidden.cs
- ProfileParameter.cs
- GeneralTransformCollection.cs
- ClientTargetCollection.cs
- StoryFragments.cs
- SqlSelectClauseBuilder.cs
- EDesignUtil.cs
- FormsAuthenticationTicket.cs
- UseLicense.cs
- AbandonedMutexException.cs
- ColumnMapCopier.cs
- TripleDES.cs
- Msmq.cs
- XamlStream.cs
- XamlTreeBuilder.cs
- ToolStripDropDownClosingEventArgs.cs
- ColumnMapCopier.cs
- ProxyWebPartConnectionCollection.cs
- XNodeSchemaApplier.cs
- PkcsUtils.cs
- CustomAttributeFormatException.cs
- WrappedIUnknown.cs
- DataSourceBooleanViewSchemaConverter.cs
- PenContext.cs
- OdbcException.cs
- XmlName.cs
- ConnectionProviderAttribute.cs
- DBConnectionString.cs
- BitmapScalingModeValidation.cs
- EndPoint.cs
- TextParaClient.cs
- SerializationInfoEnumerator.cs
- NeedSkipTokenVisitor.cs
- OdbcConnectionStringbuilder.cs
- JournalNavigationScope.cs
- BlurEffect.cs
- WebExceptionStatus.cs
- TextContainerChangeEventArgs.cs
- SplineQuaternionKeyFrame.cs
- XAMLParseException.cs
- XmlSchemaExporter.cs
- HtmlTable.cs
- RequestUriProcessor.cs
- PropertyMappingExceptionEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- TextParagraphCache.cs
- Matrix3D.cs
- SqlRowUpdatedEvent.cs
- MarkupWriter.cs
- XmlNodeChangedEventArgs.cs
- DataServiceHostFactory.cs
- Soap12ProtocolReflector.cs
- TextTreeUndo.cs
- TypeResolver.cs
- SchemaElementDecl.cs
- Mutex.cs
- TextEditorContextMenu.cs
- EndCreateSecurityTokenRequest.cs
- ResponseBodyWriter.cs
- File.cs
- RadioButtonFlatAdapter.cs