Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / 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
- FormsAuthentication.cs
- MultiSelectRootGridEntry.cs
- SocketElement.cs
- Int32Converter.cs
- Triangle.cs
- ShaderEffect.cs
- InstanceData.cs
- NativeMethodsCLR.cs
- CustomAssemblyResolver.cs
- PixelShader.cs
- HMAC.cs
- ToolStripSeparator.cs
- ADMembershipProvider.cs
- ReachPageContentCollectionSerializerAsync.cs
- TextServicesPropertyRanges.cs
- AssemblyBuilderData.cs
- __FastResourceComparer.cs
- SortKey.cs
- dataobject.cs
- BaseDataList.cs
- WebPartConnectionsEventArgs.cs
- MobileListItemCollection.cs
- SafeNativeMemoryHandle.cs
- DataObjectPastingEventArgs.cs
- DisableDpiAwarenessAttribute.cs
- HtmlElementErrorEventArgs.cs
- ComponentResourceKey.cs
- EventBuilder.cs
- RotateTransform.cs
- ListenerAdapter.cs
- XmlNamedNodeMap.cs
- RightsManagementEncryptedStream.cs
- TaskFileService.cs
- AdapterUtil.cs
- ResourcePermissionBaseEntry.cs
- AttachedAnnotation.cs
- Int32AnimationBase.cs
- CollectionTraceRecord.cs
- QuaternionConverter.cs
- Substitution.cs
- X509CertificateCollection.cs
- WebColorConverter.cs
- SelectionUIHandler.cs
- ClientConvert.cs
- DataRow.cs
- SecurityDescriptor.cs
- OdbcConnectionStringbuilder.cs
- SortableBindingList.cs
- CapabilitiesUse.cs
- SharedConnectionWorkflowTransactionService.cs
- CustomBindingElementCollection.cs
- AccessControlEntry.cs
- ControlBindingsCollection.cs
- TranslateTransform.cs
- InvalidProgramException.cs
- ApplicationId.cs
- MetadataImporter.cs
- CustomErrorsSectionWrapper.cs
- SoapIgnoreAttribute.cs
- BindingBase.cs
- BidOverLoads.cs
- PartialCachingAttribute.cs
- UpdatePanelTriggerCollection.cs
- XmlAutoDetectWriter.cs
- TreeBuilderXamlTranslator.cs
- ProgramPublisher.cs
- XsltException.cs
- Pkcs7Signer.cs
- Header.cs
- ThemeDirectoryCompiler.cs
- FormViewCommandEventArgs.cs
- EditBehavior.cs
- SecurityContext.cs
- AccessControlList.cs
- ParameterCollection.cs
- SrgsGrammarCompiler.cs
- mda.cs
- FixedFindEngine.cs
- LocalizedNameDescriptionPair.cs
- OdbcRowUpdatingEvent.cs
- TypefaceMetricsCache.cs
- ListViewUpdateEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- DataGridViewDataConnection.cs
- MessageEncodingBindingElementImporter.cs
- OutputCacheProfileCollection.cs
- GridViewPageEventArgs.cs
- XmlSchemaImport.cs
- NamedObject.cs
- RecognitionEventArgs.cs
- WindowsAltTab.cs
- UnknownMessageReceivedEventArgs.cs
- MobileListItemCollection.cs
- HttpHeaderCollection.cs
- ScrollBarAutomationPeer.cs
- SQLBinary.cs
- QueryConverter.cs
- ObjectTag.cs
- HtmlSelect.cs
- RegexStringValidatorAttribute.cs