Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2IPerPropertyBrowsingHandler.cs
- RepeaterCommandEventArgs.cs
- DefaultAuthorizationContext.cs
- ListBindableAttribute.cs
- ListBindingHelper.cs
- BaseAppDomainProtocolHandler.cs
- CollectionViewSource.cs
- DataStreamFromComStream.cs
- SafeFileMappingHandle.cs
- RegexWorker.cs
- HotSpot.cs
- XmlSchemaAppInfo.cs
- WSFederationHttpSecurityElement.cs
- Query.cs
- PixelShader.cs
- TextMarkerSource.cs
- SetterBaseCollection.cs
- listviewsubitemcollectioneditor.cs
- WebPartVerb.cs
- ContentPosition.cs
- ActionFrame.cs
- EntityViewGenerationAttribute.cs
- SafeHandle.cs
- MexHttpBindingElement.cs
- GlyphRunDrawing.cs
- DetailsViewRow.cs
- WindowProviderWrapper.cs
- SqlDataSourceConfigureSortForm.cs
- SelectionChangedEventArgs.cs
- LinqDataSource.cs
- DetailsViewUpdateEventArgs.cs
- GacUtil.cs
- GlyphTypeface.cs
- VirtualizingPanel.cs
- PrintingPermissionAttribute.cs
- BuildDependencySet.cs
- ObfuscationAttribute.cs
- SerializerProvider.cs
- OutOfProcStateClientManager.cs
- objectresult_tresulttype.cs
- PropertyTab.cs
- XmlAttributeCollection.cs
- _ListenerRequestStream.cs
- MexNamedPipeBindingCollectionElement.cs
- MsmqIntegrationBindingCollectionElement.cs
- StreamUpgradeAcceptor.cs
- mactripleDES.cs
- ManagementEventWatcher.cs
- FrameworkContextData.cs
- UndirectedGraph.cs
- Point3DAnimationUsingKeyFrames.cs
- RemotingService.cs
- MimeTypePropertyAttribute.cs
- WSTrust.cs
- PropertyToken.cs
- GridViewCellAutomationPeer.cs
- HttpListenerElement.cs
- TextAction.cs
- sqlstateclientmanager.cs
- DateTimePicker.cs
- HttpResponse.cs
- ContainerFilterService.cs
- Double.cs
- WebControlAdapter.cs
- SQLDecimalStorage.cs
- _KerberosClient.cs
- XmlILConstructAnalyzer.cs
- EntryIndex.cs
- CompositionDesigner.cs
- FixedPage.cs
- odbcmetadatacolumnnames.cs
- GacUtil.cs
- SQLMoney.cs
- TdsParserStateObject.cs
- InvalidDataException.cs
- MetadataItemEmitter.cs
- LinqDataSourceHelper.cs
- ProfileInfo.cs
- WebSysDefaultValueAttribute.cs
- HexParser.cs
- HttpConfigurationSystem.cs
- BufferedGraphicsContext.cs
- XmlUtil.cs
- Normalizer.cs
- Policy.cs
- CollectionContainer.cs
- TraceLevelStore.cs
- UpdateTranslator.cs
- ProtocolsConfigurationHandler.cs
- StorageComplexPropertyMapping.cs
- ScriptRef.cs
- DataTableClearEvent.cs
- XmlSchemaSimpleTypeUnion.cs
- XsltLibrary.cs
- ValidationHelper.cs
- SharedConnectionInfo.cs
- ConnectionConsumerAttribute.cs
- Monitor.cs
- TreeView.cs
- ConfigXmlComment.cs